Scripts/Scarlet Enclave: fix stolen effect for DK quest, which allowed to hang server by spawning unlimited number of mobs

This commit is contained in:
Az@zel
2011-06-08 11:59:45 +06:00
committed by Azazel
parent 8f7be3d48a
commit 72b73d2cb9
@@ -632,6 +632,8 @@ public:
if (caster->GetTypeId() == TYPEID_UNIT && caster->IsVehicle())
{
if (Unit *charmer = caster->GetCharmer())
{
if (charmer->HasAura(EFFECT_STOLEN_HORSE))
{
charmer->RemoveAurasDueToSpell(EFFECT_STOLEN_HORSE);
caster->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
@@ -643,6 +645,7 @@ public:
}
}
}
}
void MoveInLineOfSight(Unit *who)
{