mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 08:08:25 +00:00
Tweak spell dot stacking exempt based on client
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user