fix(Core/Spells): cyclone shouldn't be casted on totems (#5306)

This commit is contained in:
KiK0
2021-04-24 22:39:01 -07:00
committed by GitHub
parent 2e8ef021b6
commit 765660b515
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -152,6 +152,12 @@ bool Totem::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) con
spellInfo->Effects[index].TargetA.GetCheckType() != TARGET_CHECK_ENTRY && spellInfo->Id != 55277 && spellInfo->Id != 6277) spellInfo->Effects[index].TargetA.GetCheckType() != TARGET_CHECK_ENTRY && spellInfo->Id != 55277 && spellInfo->Id != 6277)
return true; return true;
// Cyclone shouldn't be casted on totems
if (spellInfo->Id == SPELL_CYCLONE)
{
return true;
}
switch (spellInfo->Effects[index].ApplyAuraName) switch (spellInfo->Effects[index].ApplyAuraName)
{ {
// i think its wrong (xinef) // i think its wrong (xinef)
+2
View File
@@ -21,6 +21,8 @@ enum TotemType
#define SENTRY_TOTEM_ENTRY 3968 #define SENTRY_TOTEM_ENTRY 3968
#define EARTHBIND_TOTEM_ENTRY 2630 #define EARTHBIND_TOTEM_ENTRY 2630
constexpr uint32 SPELL_CYCLONE = 33786;
class Totem : public Minion class Totem : public Minion
{ {
public: public: