diff options
author | John Holiver <none@none> | 2010-08-31 19:13:59 -0300 |
---|---|---|
committer | John Holiver <none@none> | 2010-08-31 19:13:59 -0300 |
commit | 3a765da2fa1bb5c055f72f0e78c5770d32027a57 (patch) | |
tree | 126ad6e0d30047548c89e74eb91ad4c3b00c1ff7 /src | |
parent | 6d64365e8fe2197c13683b908efdd8b50bf13516 (diff) |
Small fix to Chimera Shot Serpent dmg and Scorpid CD.
Thanks to Arcane.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_hunter.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index ae54bfe297d..2416cbc0a73 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -86,7 +86,8 @@ public: { int32 TickCount = aurEff->GetTotalTicks(); spellId = HUNTER_SPELL_CHIMERA_SHOT_SERPENT; - basePoint = aurEff->GetAmount() * TickCount * 40 / 100; + basePoint = caster->SpellDamageBonus(unitTarget, aura->GetSpellProto(), aurEff->GetAmount(), DOT, aura->GetStackAmount()); + basePoint = basePoint * TickCount * 40 / 100; } // Viper Sting - Instantly restores mana to you equal to 60% of the total amount drained by your Viper Sting. else if (familyFlag[1] & 0x00000080) @@ -117,7 +118,9 @@ public: break; } if (spellId) - caster->CastCustomSpell(unitTarget, spellId, &basePoint, 0, 0, false); + caster->CastCustomSpell(unitTarget, spellId, &basePoint, 0, 0, true); + if (spellId == HUNTER_SPELL_CHIMERA_SHOT_SCORPID && caster->ToPlayer()) // Scorpid Sting - Add 1 minute cooldown + caster->ToPlayer()->AddSpellCooldown(spellId,0,uint32(time(NULL) + 60)); } void Register() |