aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Instances/InstanceScript.h
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-06-29 19:24:05 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-13 00:42:18 +0100
commit6a63200e40d286dd49cc90135a519b0680a6f435 (patch)
tree37bb28dad9cdad7fabdafd955418066a201a4f12 /src/server/game/Instances/InstanceScript.h
parentfc6dc06513da4449fade9655da5d0db942fb132e (diff)
Core/Instance: add new hook & method
(cherry picked from commit 953b05459a517fb83f18047ab82ac09021bc9440)
Diffstat (limited to 'src/server/game/Instances/InstanceScript.h')
-rw-r--r--src/server/game/Instances/InstanceScript.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Instances/InstanceScript.h b/src/server/game/Instances/InstanceScript.h
index e845a56bd94..20723a6e723 100644
--- a/src/server/game/Instances/InstanceScript.h
+++ b/src/server/game/Instances/InstanceScript.h
@@ -200,6 +200,8 @@ class TC_GAME_API InstanceScript : public ZoneScript
// Called when a player successfully enters the instance.
virtual void OnPlayerEnter(Player* /*player*/) { }
+ // Called when a player successfully leaves the instance.
+ virtual void OnPlayerLeave(Player* /*player*/) { }
// Handle open / close objects
// * use HandleGameObject(0, boolen, GO); in OnObjectCreate in instance scripts
@@ -228,6 +230,7 @@ class TC_GAME_API InstanceScript : public ZoneScript
// Remove Auras due to Spell on all players in instance
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell, bool includePets = false, bool includeControlled = false);
+ void DoRemoveAurasDueToSpellOnPlayer(Player* player, uint32 spell, bool includePets = false, bool includeControlled = false);
// Cast spell on all players in instance
void DoCastSpellOnPlayers(uint32 spell, bool includePets = false, bool includeControlled = false);