changeset 1952:4ed7d18abe93

pActorBuffs[8] to pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC]
author Grumpy7
date Fri, 25 Oct 2013 11:14:32 -0700
parents 524fe0810f32
children 23cb27a497a0
files mm7_6.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mm7_6.cpp	Fri Oct 25 11:13:15 2013 -0700
+++ b/mm7_6.cpp	Fri Oct 25 11:14:32 2013 -0700
@@ -404,7 +404,7 @@
 
   v5 = pActor->pMonsterInfo.uAC;
   v6 = 0;
-  if ( (signed __int64)pActor->pActorBuffs[8].uExpireTime > 0 )
+  if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime > 0 )
     v5 /= 2;
   if ( (signed __int64)pActor->pActorBuffs[14].uExpireTime > 0 )
     v6 = pActor->pActorBuffs[15].uPower;
@@ -461,10 +461,10 @@
   v5 = a2;
   v6 = a2->pMonsterInfo.uAC;
   v7 = 0;
-  v8 = HIDWORD(a2->pActorBuffs[8].uExpireTime) == 0;
-  v9 = SHIDWORD(a2->pActorBuffs[8].uExpireTime) < 0;
+  v8 = HIDWORD(a2->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime) == 0;
+  v9 = SHIDWORD(a2->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime) < 0;
   a2a = 0;
-  if ( !v9 && (!(v9 | v8) || LODWORD(v5->pActorBuffs[8].uExpireTime) > 0) )
+  if ( !v9 && (!(v9 | v8) || LODWORD(v5->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime) > 0) )
     v6 /= 2;
   if ( (signed __int64)v5->pActorBuffs[14].uExpireTime > 0 )
     v7 = v5->pActorBuffs[14].uPower;