*Hacky fix to Grounding Totem by Themris (better than no fix at all, and very difficult to fix properly)
--HG-- branch : trunk
This commit is contained in:
1 parent
3a980db8d1
commit
cdfb402122
2 files changed
+8
No files matched your search
@@ -6079,6 +6079,10 @@ bool Spell::CheckTargetCreatureType(Unit* target) const
|
||||
if(m_spellInfo->Id == 2641 || m_spellInfo->Id == 23356)
|
||||
spellCreatureTargetMask = 0;
|
||||
|
||||
// Polymorph and Grounding Totem
|
||||
if (target->GetEntry() == 5925 && m_spellInfo->SpellFamilyName == SPELLFAMILY_MAGE && (m_spellInfo->SpellFamilyFlags[0] & 0x1000000) && m_spellInfo->EffectApplyAuraName[0] == SPELL_AURA_MOD_CONFUSE)
|
||||
return true;
|
||||
|
||||
if (spellCreatureTargetMask)
|
||||
{
|
||||
uint32 TargetCreatureType = target->GetCreatureTypeMask();
|
||||
@@ -6200,6 +6204,8 @@ bool Spell::CheckTarget(Unit* target, uint32 eff)
|
||||
caster = m_caster->GetMap()->GetGameObject(m_originalCasterGUID);
|
||||
if (!caster)
|
||||
caster = m_caster;
|
||||
if(target->GetEntry() == 5925)
|
||||
return true;
|
||||
if(target != m_caster && !target->IsWithinLOSInMap(caster))
|
||||
return false;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user