All pastes #803686 Raw Edit

Anonym

public text v1 · immutable
·published 2007-12-02 14:56 UTC
rendered paste body
Index: boss_garr.cpp
===================================================================
--- boss_garr.cpp	(revision 150)
+++ boss_garr.cpp	(working copy)
@@ -39,6 +39,7 @@
     uint64 Add[8];
     bool Enraged[8];
     bool InCombat;
+	bool AddsSpawned;
 
     void EnterEvadeMode()
     {
@@ -46,6 +47,7 @@
         MagmaShackles_Timer = 15000;
         CheckAdds_Timer = 2000;
         InCombat = false;
+		AddsSpawned = false;
 
         m_creature->RemoveAllAuras();
         m_creature->DeleteThreatList();
@@ -64,6 +66,12 @@
             //Begin melee attack if we are within range
             DoStartMeleeAttack(who);
             InCombat = true;
+			if (!AddsSpawned)
+			{
+				SpawnAdds();
+				AddsSpawned = true;
+			}
+
         }
     }
 
@@ -131,6 +139,12 @@
         if (!m_creature->SelectHostilTarget() || !m_creature->getVictim())
             return;
 
+		if (CheckAdds_Timer < diff)
+		{
+			CheckAdds();
+			CheckAdds_Timer = 2000;
+		} else CheckAdds_Timer -= diff;
+
         //AntiMagicPulse_Timer
         if (AntiMagicPulse_Timer < diff)
         {