fix(Core/Spells): cyclone shouldn't be casted on totems (#5306)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user