From 1121fcfb90fb5c5cd7f8397d3f36881d9f65273e Mon Sep 17 00:00:00 2001 From: QAston Date: Sun, 15 May 2011 18:53:02 +0200 Subject: Core/Scripts: Remove hook GetAuraEffectTriggerTarget from CreatureAI.h The hook was made for one obsolete script, which turned out to not work anyways. --- .../TempleOfAhnQiraj/mob_anubisath_sentinel.cpp | 33 ---------------------- 1 file changed, 33 deletions(-) (limited to 'src/server/scripts/Kalimdor') diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp index ade4fab62e8..8f228ada972 100644 --- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp +++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/mob_anubisath_sentinel.cpp @@ -255,39 +255,6 @@ public: CAST_AI(aqsentinelAI, sent->AI())->GainSentinelAbility(ability); } } - - Unit *GetHatedManaUser() const - { - std::list const& threatList = me->getThreatManager().getThreatList(); - for (std::list::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; - } - } }; }; -- cgit v1.2.3