Tweak spell dot stacking exempt based on client

This commit is contained in:
Michael Cook (mackal)
2016-07-16 18:18:10 -04:00
parent 6cb2fdd737
commit 9cf553232d
4 changed files with 15 additions and 3 deletions
+11
View File
@@ -1100,6 +1100,17 @@ bool NoDetrimentalSpellAggro(uint16 spell_id)
return false;
}
bool IsStackableDot(uint16 spell_id)
{
// rules according to client
if (!IsValidSpell(spell_id))
return false;
const auto &spell = spells[spell_id];
if (spell.dot_stacking_exempt || spell.goodEffect || !spell.buffdurationformula)
return false;
return IsEffectInSpell(spell_id, SE_CurrentHP) || IsEffectInSpell(spell_id, SE_GravityEffect);
}
uint32 GetNimbusEffect(uint16 spell_id)
{
if (IsValidSpell(spell_id))