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:
@@ -632,6 +632,8 @@ public:
|
|||||||
if (caster->GetTypeId() == TYPEID_UNIT && caster->IsVehicle())
|
if (caster->GetTypeId() == TYPEID_UNIT && caster->IsVehicle())
|
||||||
{
|
{
|
||||||
if (Unit *charmer = caster->GetCharmer())
|
if (Unit *charmer = caster->GetCharmer())
|
||||||
|
{
|
||||||
|
if (charmer->HasAura(EFFECT_STOLEN_HORSE))
|
||||||
{
|
{
|
||||||
charmer->RemoveAurasDueToSpell(EFFECT_STOLEN_HORSE);
|
charmer->RemoveAurasDueToSpell(EFFECT_STOLEN_HORSE);
|
||||||
caster->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
|
caster->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
|
||||||
@@ -643,6 +645,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MoveInLineOfSight(Unit *who)
|
void MoveInLineOfSight(Unit *who)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user