# HG changeset patch # User Grumpy7 # Date 1382724872 25200 # Node ID 4ed7d18abe934dc4256b5bdbb3724dc540aa751f # Parent 524fe0810f3232fdf913b8884f48600cb128422d pActorBuffs[8] to pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC] diff -r 524fe0810f32 -r 4ed7d18abe93 mm7_6.cpp --- 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;