Skip to content

Commit a81e7b2

Browse files
authored
Scripts/PitOfSaron: Update Ick's reaction state during Explosive Barrage (#30432)
1 parent b6bb35b commit a81e7b2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_krickandick.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)