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:
1 parent
b135ef0f62
commit
1121fcfb90
4 files changed
+2
-49
No files matched your search
@@ -255,39 +255,6 @@ public:
|
||||
CAST_AI(aqsentinelAI, sent->AI())->GainSentinelAbility(ability);
|
||||
}
|
||||
}
|
||||
|
||||
Unit *GetHatedManaUser() const
|
||||
{
|
||||
std::list<HostileReference*> const& threatList = me->getThreatManager().getThreatList();
|
||||
for (std::list<HostileReference*>::const_iterator i = threatList.begin(); i != threatList.end(); ++i)
|
||||
if (Unit* unit = (*i)->getTarget())
|
||||
if (unit->getPowerType() == POWER_MANA)
|
||||
return unit;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Unit* GetAuraEffectTriggerTarget(uint32 spellId, uint8 /*effIndex*/)
|
||||
{
|
||||
switch (spellId)
|
||||
{
|
||||
case SPELL_KNOCK_BUFF:
|
||||
case SPELL_THUNDER_BUFF:
|
||||
case SPELL_MSTRIKE_BUFF:
|
||||
case SPELL_STORM_BUFF:
|
||||
return me->getVictim();
|
||||
|
||||
case SPELL_MANAB_BUFF:
|
||||
return GetHatedManaUser();
|
||||
|
||||
case SPELL_MENDING_BUFF:
|
||||
case SPELL_REFLECTAF_BUFF:
|
||||
case SPELL_REFLECTSFr_BUFF:
|
||||
case SPELL_THORNS_BUFF:
|
||||
default:
|
||||
return me;
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user