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

- Allows you to disable buffs fading on death.
This commit is contained in:
Kinglykrab authored and GitHub committed 2022-05-27 15:00:59 -04:00
1 parent 123bc5f19a
commit 7072b5721b
5 files changed
+18 -5

No files matched your search

+4 -1
View File
@@ -398,7 +398,10 @@ Bot::Bot(uint32 botID, uint32 botOwnerCharacterID, uint32 botSpellsID, double to
current_hp = max_hp;
if(current_hp <= 0) {
BuffFadeNonPersistDeath();
if (RuleB(Spells, BuffsFadeOnDeath)) {
BuffFadeNonPersistDeath();
}
if (RuleB(Bots, ResurrectionSickness)) {
int resurrection_sickness_spell_id = (
RuleB(Bots, OldRaceRezEffects) &&