aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp
index cbb8ce53b91..53a013bed5a 100644
--- a/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp
+++ b/src/bindings/scripts/scripts/zone/caverns_of_time/hyjal/hyjalAI.cpp
@@ -230,6 +230,13 @@ void hyjalAI::StartEvent(Player* player)
if(!player)
return;
+ Map* Hyjal = m_creature->GetMap();
+ if(Hyjal->GetPlayersCountExceptGMs() < 15) //check if there are more than 15 players in hyjal (abuse prevent)
+ {
+ //error_log("Some Players try to farm in Hyjal (less than 15 people)");
+ return;
+ }
+
Talk(BEGIN);
EventBegun = true;