File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/server/scripts/Northrend/FrozenHalls/PitOfSaron Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -547,22 +547,20 @@ class spell_ick_explosive_barrage : public AuraScript
547547
548548 void HandleEffectApply (AuraEffect const * /* aurEff*/ , AuraEffectHandleModes /* mode*/ )
549549 {
550- Unit* caster = GetCaster ();
551- if (!caster || caster-> GetTypeId () != TYPEID_UNIT )
550+ Creature* target = GetTarget ()-> ToCreature ();
551+ if (!target )
552552 return ;
553553
554- caster->GetMotionMaster ()->MoveIdle ();
555- caster->GetMotionMaster ()->Clear (MOTION_PRIORITY_NORMAL);
554+ target->SetReactState (REACT_PASSIVE);
556555 }
557556
558557 void HandleEffectRemove (AuraEffect const * /* aurEff*/ , AuraEffectHandleModes /* mode*/ )
559558 {
560- Unit* caster = GetCaster ();
561- if (!caster || caster-> GetTypeId () != TYPEID_UNIT )
559+ Creature* target = GetTarget ()-> ToCreature ();
560+ if (!target )
562561 return ;
563562
564- if (Unit* victim = caster->GetVictim ())
565- caster->GetMotionMaster ()->MoveChase (victim);
563+ target->SetReactState (REACT_AGGRESSIVE);
566564 }
567565
568566 void Register () override
You can’t perform that action at this time.
0 commit comments