953 {
956 return;
957
959
962
964 std::list<Creature*> creList;
966 for (std::list<Creature*>::iterator itr = creList.begin(); itr != creList.end(); ++itr)
967 if (((*itr)->GetPositionX() > 4350.0f && stage == 0) || ((*itr)->GetPositionX() < 4350.0f && stage == 1))
968 {
969 target = (*itr);
970 break;
971 }
972
973 if (target)
974 {
976 if (aura->GetOwner() == target)
977 aura->UpdateOwner(5000, target);
978 }
979
981 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ NPC_ABOMINATION_WING_MAD_SCIENTIST_STALKER
Definition: icecrown_citadel.h:264
@ DATA_EXPERIMENT_STAGE
Definition: boss_professor_putricide.cpp:118
void GetCreatureListWithEntryInGrid(std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:860
virtual void SetData(uint32, uint32)
Definition: UnitAI.h:214
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:213
Definition: Creature.h:43
CreatureAI * AI() const
Definition: Creature.h:140
Creature * ToCreature()
Definition: Object.h:202
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5581
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
Definition: SpellAuras.h:87
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401