mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11692] Fixed damage/heal amount from some triggered HoTs/DoTs.
This commit is contained in:
parent
bb9157c6fc
commit
387a15f1a1
4 changed files with 37 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue