Core/Scripts: Remove hook GetAuraEffectTriggerTarget from CreatureAI.h

The hook was made for one obsolete script, which turned out to not work anyways.
This commit is contained in:
QAston
2011-05-15 18:53:02 +02:00
parent b135ef0f62
commit 1121fcfb90
4 changed files with 2 additions and 49 deletions
@@ -2149,22 +2149,12 @@ void AuraEffect::PeriodicDummyTick(Unit * target, Unit * caster) const
}
}
Unit* AuraEffect::GetTriggerTarget(Unit * target) const
{
if (target->GetTypeId() == TYPEID_UNIT)
{
if (Unit * trigger = target->ToCreature()->AI()->GetAuraEffectTriggerTarget(GetId(), GetEffIndex()))
return trigger;
}
return target;
}
void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const
{
if (!caster || !target)
return;
Unit* triggerTarget = GetTriggerTarget(target);
Unit* triggerTarget = target;
// generic casting code with custom spells and target/caster customs
uint32 triggerSpellId = GetSpellProto()->EffectTriggerSpell[GetEffIndex()];
@@ -2468,7 +2458,7 @@ void AuraEffect::TriggerSpellWithValue(Unit * target, Unit * caster) const
if (!caster || !target)
return;
Unit* triggerTarget = GetTriggerTarget(target);
Unit* triggerTarget = target;
uint32 triggerSpellId = GetSpellProto()->EffectTriggerSpell[m_effIndex];
SpellEntry const *triggeredSpellInfo = sSpellStore.LookupEntry(triggerSpellId);
@@ -67,7 +67,6 @@ class AuraEffect
void PeriodicTick(AuraApplication * aurApp, Unit * caster) const;
void PeriodicDummyTick(Unit * target, Unit * caster) const;
Unit* GetTriggerTarget(Unit * target) const;
void TriggerSpell(Unit * target, Unit * caster) const;
void TriggerSpellWithValue(Unit * target, Unit * caster) const;