aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaymoira <none@none>2009-01-14 19:39:09 +0100
committerBlaymoira <none@none>2009-01-14 19:39:09 +0100
commit52fcc84a60f427e2c97c6cc706aea39b648a308e (patch)
tree1c2cd0eac150a5e7a982985317cab98ffb0a494d
parentba9c0ac5a3ec53d9abc6252c7fb4b0631a583b6d (diff)
*Added a check for Eventstarting in hyjal - by Bagsac
--HG-- branch : trunk
-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;