mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 11:03:47 +00:00
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)
|
||||
{
|
||||
creatureTarget->UpdateEntry(newEntry);
|
||||
creatureTarget->GetMotionMaster()->Clear();
|
||||
creatureTarget->GetMotionMaster()->MoveFleeing(caster);
|
||||
creatureTarget->SetUnitFlag(UNIT_FLAG_NOT_ATTACKABLE_1);
|
||||
creatureTarget->DespawnOrUnsummon(DESPAWN_TIME);
|
||||
caster->KilledMonsterCredit(newEntry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user