# HG changeset patch # User Grumpy7 # Date 1382725181 25200 # Node ID 4fbffad6e01191899f7d6fde4ccfbd5463168b39 # Parent 95095c2a5e19f9217fc2b5b0e62ccc45edd923f6 pActorBuffs[15] to pActorBuffs[ACTOR_BUFF_SHIELD] diff -r 95095c2a5e19 -r 4fbffad6e011 Actor.cpp --- a/Actor.cpp Fri Oct 25 11:19:01 2013 -0700 +++ b/Actor.cpp Fri Oct 25 11:19:41 2013 -0700 @@ -468,7 +468,7 @@ v8 = 3600 * (realPoints + 64); else v8 = 0; - actorPtr->pActorBuffs[15].Apply( + actorPtr->pActorBuffs[ACTOR_BUFF_SHIELD].Apply( pParty->uTimePlayed + (signed int)(signed __int64)((double)(v8 << 7) * 0.033333335), masteryLevel, 0, diff -r 95095c2a5e19 -r 4fbffad6e011 mm7_5.cpp --- a/mm7_5.cpp Fri Oct 25 11:19:01 2013 -0700 +++ b/mm7_5.cpp Fri Oct 25 11:19:41 2013 -0700 @@ -459,9 +459,9 @@ if ( a4 - HIDWORD(v10) == 1 ) { v12 = v8->pMonsterInfo.uAttack2Type; - if ( SHIDWORD(v7->pActorBuffs[15].uExpireTime) >= SHIDWORD(v10) - && (SHIDWORD(v7->pActorBuffs[15].uExpireTime) > SHIDWORD(v10) - || LODWORD(v7->pActorBuffs[15].uExpireTime) > HIDWORD(v10)) ) + if ( SHIDWORD(v7->pActorBuffs[ACTOR_BUFF_SHIELD].uExpireTime) >= SHIDWORD(v10) + && (SHIDWORD(v7->pActorBuffs[ACTOR_BUFF_SHIELD].uExpireTime) > SHIDWORD(v10) + || LODWORD(v7->pActorBuffs[ACTOR_BUFF_SHIELD].uExpireTime) > HIDWORD(v10)) ) LODWORD(v10) = (signed int)v10 >> 1; goto LABEL_30; } diff -r 95095c2a5e19 -r 4fbffad6e011 mm7_6.cpp --- a/mm7_6.cpp Fri Oct 25 11:19:01 2013 -0700 +++ b/mm7_6.cpp Fri Oct 25 11:19:41 2013 -0700 @@ -326,12 +326,12 @@ } case 17: { - if ( SHIDWORD(pActor->pActorBuffs[15].uExpireTime) < 0 ) + if ( SHIDWORD(pActor->pActorBuffs[ACTOR_BUFF_SHIELD].uExpireTime) < 0 ) return 1; - if ( SHIDWORD(pActor->pActorBuffs[15].uExpireTime) > 0 ) + if ( SHIDWORD(pActor->pActorBuffs[ACTOR_BUFF_SHIELD].uExpireTime) > 0 ) return 0; v3 = 0; - v4 = LODWORD(pActor->pActorBuffs[15].uExpireTime) == 0; + v4 = LODWORD(pActor->pActorBuffs[ACTOR_BUFF_SHIELD].uExpireTime) == 0; break; } case 38: @@ -407,7 +407,7 @@ if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_SOMETHING_THAT_HALVES_AC].uExpireTime > 0 ) v5 /= 2; if ( (signed __int64)pActor->pActorBuffs[ACTOR_BUFF_HOUR_OF_POWER].uExpireTime > 0 ) - v6 = pActor->pActorBuffs[15].uPower; + v6 = pActor->pActorBuffs[ACTOR_BUFF_SHIELD].uPower; if ( (signed __int64)pActor->pActorBuffs[16].uExpireTime > 0 && pActor->pActorBuffs[16].uPower > v6 ) v6 = pActor->pActorBuffs[16].uPower; v7 = v6 + v5;