[11692] Fixed damage/heal amount from some triggered HoTs/DoTs.

This commit is contained in:
VladimirMangos 2011-06-28 15:19:19 +04:00
parent bb9157c6fc
commit 387a15f1a1
4 changed files with 37 additions and 34 deletions

View file

@ -257,6 +257,18 @@ uint16 GetSpellAuraMaxTicks(SpellEntry const* spellInfo)
return 6;
}
uint16 GetSpellAuraMaxTicks(uint32 spellId)
{
SpellEntry const* spellInfo = sSpellStore.LookupEntry(spellId);
if (!spellInfo)
{
sLog.outError("GetSpellAuraMaxTicks: Spell %u not exist!", spellId);
return 1;
}
return GetSpellAuraMaxTicks(spellInfo);
}
float CalculateDefaultCoefficient(SpellEntry const *spellProto, DamageEffectType const damagetype)
{
// Damage over Time spells bonus calculation