# HG changeset patch # User Grumpy7 # Date 1382724918 25200 # Node ID 23cb27a497a059b752e78ab6ef67cc5d87647e95 # Parent 4ed7d18abe934dc4256b5bdbb3724dc540aa751f pActorBuffs[9] to pActorBuffs[ACTOR_BUFF_BERSERK] diff -r 4ed7d18abe93 -r 23cb27a497a0 CastSpellInfo.cpp --- a/CastSpellInfo.cpp Fri Oct 25 11:14:32 2013 -0700 +++ b/CastSpellInfo.cpp Fri Oct 25 11:15:18 2013 -0700 @@ -911,8 +911,8 @@ else if ( v731 == 3 ) power = 29030400; - //((SpellBuff *)((char *)&pActors[0].pActorBuffs[9] + v730))->Reset(); - pActors[PID_ID(a2)].pActorBuffs[9].Reset(); + //((SpellBuff *)((char *)&pActors[0].pActorBuffs[ACTOR_BUFF_BERSERK] + v730))->Reset(); + pActors[PID_ID(a2)].pActorBuffs[ACTOR_BUFF_BERSERK].Reset(); //((SpellBuff *)((char *)&pActors[0].pActorBuffs[12] + v730))->Reset(); pActors[PID_ID(a2)].pActorBuffs[12].Reset(); //((SpellBuff *)((char *)&pActors[0].pActorBuffs[ACTOR_BUFF_CHARM] + v730))->Apply( @@ -2770,7 +2770,7 @@ { pActors[v426].pActorBuffs[ACTOR_BUFF_CHARM].Reset(); pActors[v426].pActorBuffs[12].Reset(); - pActors[v426].pActorBuffs[9].Apply( + pActors[v426].pActorBuffs[ACTOR_BUFF_BERSERK].Apply( pParty->uTimePlayed + (signed __int64)((double)(amount << 7) * 0.033333335), v731, 0, 0, 0); pActors[v426].pMonsterInfo.uHostilityType = MonsterInfo::Hostility_Long; @@ -2820,7 +2820,7 @@ break; if ( stru_50C198.GetMagicalResistance(&pActors[PID_ID(a2)], 7u) ) { - pActors[PID_ID(a2)].pActorBuffs[9].Reset(); + pActors[PID_ID(a2)].pActorBuffs[ACTOR_BUFF_BERSERK].Reset(); pActors[PID_ID(a2)].pActorBuffs[ACTOR_BUFF_CHARM].Reset(); pActors[PID_ID(a2)].pActorBuffs[12].Apply(pParty->uTimePlayed + (signed __int64)((double)(amount << 7) * 0.033333335), v731, 0, 0, 0); @@ -3758,7 +3758,7 @@ pCastSpell->uSpellID = 0; continue; } - pActor->pActorBuffs[9].Reset(); + pActor->pActorBuffs[ACTOR_BUFF_BERSERK].Reset(); pActor->pActorBuffs[ACTOR_BUFF_CHARM].Reset(); pActor->pActorBuffs[12].Apply(pParty->uTimePlayed + (signed __int64)((double)(signed int)((int)v733 << 7) * 0.033333335), v731, 0, 0, 0);