Core/Spells: Removed some old code that was breaking Grounding Totem.

Please report feedback
This commit is contained in:
Subv
2012-07-02 18:53:14 -05:00
parent 94d935ea8f
commit d28f348caf

View File

@@ -804,11 +804,6 @@ void Unit::CastSpell(SpellCastTargets const& targets, SpellInfo const* spellInfo
return;
}
// TODO: this is a workaround and needs removal
if (!originalCaster && GetTypeId() == TYPEID_UNIT && ToCreature()->isTotem() && IsControlledByPlayer())
if (Unit* owner = GetOwner())
originalCaster=owner->GetGUID();
// TODO: this is a workaround - not needed anymore, but required for some scripts :(
if (!originalCaster && triggeredByAura)
originalCaster = triggeredByAura->GetCasterGUID();