aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortartalo <none@none>2009-10-18 19:40:53 +0200
committertartalo <none@none>2009-10-18 19:40:53 +0200
commitc751a76107dc04ddc89de342de04579138b3959d (patch)
tree410e8039843b93e26c2b99dd2c84bd86cbd758d6
parent3844d20e89e017f94eedc6272fc249cd686dadbc (diff)
parent3160de99cdb52d9b67448a0164178ac4a0c75412 (diff)
merge
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 1954976b824..38a55322ebd 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5613,23 +5613,25 @@ void Spell::EffectScriptEffect(uint32 effIndex)
// Serpent Sting - Instantly deals 40% of the damage done by your Serpent Sting.
if (familyFlag[0] & 0x4000)
{
+ int32 TickCount = aura->GetPartAura(0)->GetTotalTicks();
spellId = 53353; // 53353 Chimera Shot - Serpent
- basePoint = aura->GetPartAura(0)->GetAmount() * 5 * 40 / 100;
+ basePoint = aura->GetPartAura(0)->GetAmount() * TickCount * 40 / 100;
}
// Viper Sting - Instantly restores mana to you equal to 60% of the total amount drained by your Viper Sting.
- if (familyFlag[1] & 0x00000080)
+ else if (familyFlag[1] & 0x00000080)
{
- int32 tickCount = aura->GetPartAura(0)->GetTickNumber();
+ int32 TickCount = aura->GetPartAura(0)->GetTotalTicks();
spellId = 53358; // 53358 Chimera Shot - Viper
- // Amount of one aura tick
+
+ // Amount of one aura tick
basePoint = aura->GetPartAura(0)->GetAmount() * aura->GetTarget()->GetMaxPower(POWER_MANA) / 100 ;
int32 casterBasePoint = aura->GetPartAura(0)->GetAmount() * unitTarget->GetMaxPower(POWER_MANA) / 50 ;
if (basePoint > casterBasePoint)
basePoint = casterBasePoint;
- basePoint = basePoint * tickCount * 60 / 100;
+ basePoint = basePoint * TickCount * 60 / 100;
}
// Scorpid Sting - Attempts to Disarm the target for 10 sec. This effect cannot occur more than once per 1 minute.
- if (familyFlag[0] & 0x00008000)
+ else if (familyFlag[0] & 0x00008000)
spellId = 53359; // 53359 Chimera Shot - Scorpid
// ?? nothing say in spell desc (possibly need addition check)
//if (familyFlag & 0x0000010000000000LL || // dot