changeset 1953:23cb27a497a0

pActorBuffs[9] to pActorBuffs[ACTOR_BUFF_BERSERK]
author Grumpy7
date Fri, 25 Oct 2013 11:15:18 -0700
parents 4ed7d18abe93
children 730166317ed0
files CastSpellInfo.cpp
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);