Scripts/The Storm Peaks: Use proper vehicle check on prisoners from Cold Hearted quest.

This commit is contained in:
w1sht0l1v3
2013-06-29 14:50:37 +03:00
parent 53e5fc2fbc
commit 44c844d6fd

View File

@@ -195,10 +195,8 @@ public:
if (!freed)
return;
if (!me->HasUnitState(UNIT_STATE_ONVEHICLE))
{
if (!me->GetVehicle())
me->DespawnOrUnsummon();
}
}
void SpellHit(Unit* caster, const SpellInfo* spell)