fix(Scripts/Quest): improved Curing the Sick (#16798)
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
--
|
||||||
|
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` = 12298;
|
||||||
|
|
||||||
|
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 12298) AND (`source_type` = 0);
|
||||||
@@ -974,6 +974,9 @@ class spell_q6124_6129_apply_salve : public SpellScript
|
|||||||
if (newEntry)
|
if (newEntry)
|
||||||
{
|
{
|
||||||
creatureTarget->UpdateEntry(newEntry);
|
creatureTarget->UpdateEntry(newEntry);
|
||||||
|
creatureTarget->GetMotionMaster()->Clear();
|
||||||
|
creatureTarget->GetMotionMaster()->MoveFleeing(caster);
|
||||||
|
creatureTarget->SetUnitFlag(UNIT_FLAG_NOT_ATTACKABLE_1);
|
||||||
creatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
|
creatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
|
||||||
caster->KilledMonsterCredit(newEntry);
|
caster->KilledMonsterCredit(newEntry);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user