Small fix to Chimera Shot Serpent dmg and Scorpid CD.

Thanks to Arcane.

--HG--
branch : trunk
This commit is contained in:
John Holiver
2010-08-31 19:13:59 -03:00
parent 6d64365e8f
commit 3a765da2fa

View File

@@ -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()