mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 07:30:48 +00:00
Tweak spell dot stacking exempt based on client
This commit is contained in:
1 parent
6cb2fdd737
commit
9cf553232d
4 files changed
+15
-3
No files matched your search
@@ -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