[Rules] Add Spells:BuffsFadeOnDeath. (#2200)

- Allows you to disable buffs fading on death.
This commit is contained in:
Kinglykrab
2022-05-27 15:00:59 -04:00
committed by GitHub
parent 123bc5f19a
commit 7072b5721b
5 changed files with 18 additions and 5 deletions
+5 -2
View File
@@ -5330,11 +5330,14 @@ bool Mob::TrySpellOnDeath()
if(spellbonuses.SpellOnDeath[i] && IsValidSpell(spellbonuses.SpellOnDeath[i])) {
if(zone->random.Roll(static_cast<int>(spellbonuses.SpellOnDeath[i + 1]))) {
SpellFinished(spellbonuses.SpellOnDeath[i], this, EQ::spells::CastingSlot::Item, 0, -1, spells[spellbonuses.SpellOnDeath[i]].resist_difficulty);
}
}
}
}
if (RuleB(Spells, BuffsFadeOnDeath)) {
BuffFadeNonPersistDeath();
}
BuffFadeNonPersistDeath();
return false;
//You should not be able to use this effect and survive (ALWAYS return false),
//attempting to place a heal in these effects will still result