diff Actor.cpp @ 1951:524fe0810f32

pActorBuffs[7] to pActorBuffs[ACTOR_BUFF_SLOWED]
author Grumpy7
date Fri, 25 Oct 2013 11:13:15 -0700
parents 8509a59af88f
children 0c5326e2044a
line wrap: on
line diff
--- a/Actor.cpp	Fri Oct 25 11:12:18 2013 -0700
+++ b/Actor.cpp	Fri Oct 25 11:13:15 2013 -0700
@@ -1292,7 +1292,7 @@
     v3->uAIState = AttackingMelee;
     Actor::PlaySound(uActorID, 0);
     v25 = pMonsterStats->pInfos[v3->pMonsterInfo.uID].uRecoveryTime;
-    if ( v3->pActorBuffs[7].uExpireTime > 0 )
+    if ( v3->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime > 0 )
     {
       v25 *= 2;
     }
@@ -1572,7 +1572,7 @@
     v3->uAIState = AttackingRanged4;
     Actor::PlaySound(uActorID, 0);
     pDira = pMonsterStats->pInfos[v3->pMonsterInfo.uID].uRecoveryTime;
-    if (v3->pActorBuffs[7].uExpireTime > 0)
+    if (v3->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime > 0)
     {
       pDira *= 2;
     }
@@ -1656,7 +1656,7 @@
     v3->uAIState = AttackingRanged3;
     Actor::PlaySound(uActorID, 0);
     pDira = pMonsterStats->pInfos[v3->pMonsterInfo.uID].uRecoveryTime;
-    if (v3->pActorBuffs[7].uExpireTime > 0)
+    if (v3->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime > 0)
     {
       pDira *= 2;
     }
@@ -1740,7 +1740,7 @@
     v3->uAIState = AttackingRanged2;
     Actor::PlaySound(uActorID, 0);
     pDira = pMonsterStats->pInfos[v3->pMonsterInfo.uID].uRecoveryTime;
-    if ( v3->pActorBuffs[7].uExpireTime > 0 )
+    if ( v3->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime > 0 )
     {
       pDira *= 2;
     }
@@ -1821,7 +1821,7 @@
     v3->uAIState = AttackingRanged1;
     Actor::PlaySound(uActorID, 0);
     pDira = pMonsterStats->pInfos[v3->pMonsterInfo.uID].uRecoveryTime;
-    if ( v3->pActorBuffs[7].uExpireTime > 0 )
+    if ( v3->pActorBuffs[ACTOR_BUFF_SLOWED].uExpireTime > 0 )
     {
       pDira *= 2;
     }