mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
fix(Core/Creatures): Added new AI function OnTeleportUnreacheablePlayer to teleport all unreachable players. (#12193)
* fix(Core/Creatures): Implemented CREATURE_FLAG_EXTRA_TELEPORT_UNREACHABLE_PLAYERS. Fixed #11750 * Update. * Update. * Update.
This commit is contained in:
@@ -313,6 +313,12 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool OnTeleportUnreacheablePlayer(Player* player) override
|
||||
{
|
||||
DoCast(player, SPELL_SUMMON_PLAYER, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
void DoMeleeAttackIfReady(bool ignoreCasting)
|
||||
{
|
||||
if (!ignoreCasting && me->HasUnitState(UNIT_STATE_CASTING))
|
||||
|
||||
Reference in New Issue
Block a user