fix(Scripts/Quest): improved Curing the Sick (#16798)

This commit is contained in:
Grimgravy
2023-07-26 08:48:57 -03:00
committed by GitHub
parent 3d00fb7948
commit 721a1de241
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
--
UPDATE `creature_template` SET `AIName` = '' WHERE `entry` = 12298;
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 12298) AND (`source_type` = 0);

View File

@@ -974,6 +974,9 @@ class spell_q6124_6129_apply_salve : public SpellScript
if (newEntry)
{
creatureTarget->UpdateEntry(newEntry);
creatureTarget->GetMotionMaster()->Clear();
creatureTarget->GetMotionMaster()->MoveFleeing(caster);
creatureTarget->SetUnitFlag(UNIT_FLAG_NOT_ATTACKABLE_1);
creatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
caster->KilledMonsterCredit(newEntry);
}