mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
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:
@@ -0,0 +1,2 @@
|
||||
-- https://www.wowhead.com/wotlk/quest=9433/
|
||||
UPDATE `creature_template` SET `ScriptName`='npc_controller' WHERE `entry` IN (17178, 19405);
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user