mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-13 11:34:07 -04:00
Core/Spells: Removed some old code that was breaking Grounding Totem.
Please report feedback
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user