aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-29 17:21:06 -0600
committermegamage <none@none>2009-03-29 17:21:06 -0600
commit7668b6aae6c9d67395f599681c61225a0daafd19 (patch)
treec993978cf450658548cd2d5a1d7f59ebca23ce7f /src/game/Unit.cpp
parent77d27860919bd46d6f65d3e37e9f94bd5396cd1f (diff)
[7583] Use instead BasePoints+1 hardcoded formula more correct BasePoint+BaseDice hide in special helper function. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 5c08b728307..d10fbbc98da 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7257,7 +7257,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
}
// percent stored in effect 1 (class scripts) base points
int32 cost = originalSpell->manaCost + originalSpell->ManaCostPercentage * GetCreateMana() / 100;
- basepoints0 = cost*(auraSpellInfo->EffectBasePoints[1]+1)/100;
+ basepoints0 = cost*auraSpellInfo->CalculateSimpleValue(1)/100;
trigger_spell_id = 20272;
target = this;
}