fix(DB/Quest): improve A Dip in the Moonwell (#15259)

* fix(DB/Quest): improve A Dip in the Moonwell

* Add Npc Steam Tonk

* Update rev_1677930037418943000.sql

* Atualizar o rev_1677930037418943000.sql
This commit is contained in:
Grimgravy 2023-08-05 22:16:19 -03:00 committed by GitHub
parent c3acf75618
commit c3c6ce9d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,2 @@
-- https://www.wowhead.com/wotlk/quest=9433/
UPDATE `creature_template` SET `ScriptName`='npc_controller' WHERE `entry` IN (17178, 19405);

View file

@ -2668,6 +2668,19 @@ private:
TaskScheduler _scheduler;
};
struct npc_controller : public PossessedAI
{
npc_controller(Creature* creature) : PossessedAI(creature) { }
void OnCharmed(bool apply) override
{
if (!apply)
{
me->GetCharmerOrOwner()->InterruptNonMeleeSpells(false);
}
}
};
void AddSC_npcs_special()
{
// Ours
@ -2696,4 +2709,5 @@ void AddSC_npcs_special()
new npc_stable_master();
RegisterCreatureAI(npc_arcanite_dragonling);
RegisterCreatureAI(npc_crashin_thrashin_robot);
RegisterCreatureAI(npc_controller);
}