From 3a765da2fa1bb5c055f72f0e78c5770d32027a57 Mon Sep 17 00:00:00 2001 From: John Holiver Date: Tue, 31 Aug 2010 19:13:59 -0300 Subject: Small fix to Chimera Shot Serpent dmg and Scorpid CD. Thanks to Arcane. --HG-- branch : trunk --- src/server/scripts/Spells/spell_hunter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3