mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Scripts/Trial of the Crusader: Fixed crash in Snobold Vassal script (#18124)
Closes #18122
This commit is contained in:
@@ -417,8 +417,9 @@ class npc_snobold_vassal : public CreatureScript
|
||||
switch (eventId)
|
||||
{
|
||||
case EVENT_FIRE_BOMB:
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, -me->GetVehicleBase()->GetCombatReach(), true))
|
||||
me->CastSpell(target, SPELL_FIRE_BOMB);
|
||||
if (me->GetVehicleBase())
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, -me->GetVehicleBase()->GetCombatReach(), true))
|
||||
me->CastSpell(target, SPELL_FIRE_BOMB);
|
||||
_events.Repeat(Seconds(20));
|
||||
break;
|
||||
case EVENT_HEAD_CRACK:
|
||||
|
||||
Reference in New Issue
Block a user