[Feature] Rule to replace dispel spell effects with suppression effect.

This commit is contained in:
zimp-wow
2025-06-11 18:08:45 -05:00
committed by Vayle
parent 30004716bb
commit dd6cfcddca
13 changed files with 321 additions and 172 deletions
+4 -2
View File
@@ -452,7 +452,7 @@ public:
void BuffFadeBeneficial();
void BuffFadeNonPersistDeath();
void BuffFadeDetrimental();
void BuffFadeBySlot(int slot, bool iRecalcBonuses = true);
void BuffFadeBySlot(int slot, bool iRecalcBonuses = true, bool suppress = false, uint32 suppresstics = 0);
void BuffFadeDetrimentalByCaster(Mob *caster);
void BuffFadeBySitModifier();
void BuffFadeSongs();
@@ -966,7 +966,9 @@ public:
void TrySympatheticProc(Mob *target, uint32 spell_id);
uint16 GetSympatheticFocusEffect(focusType type, uint16 spell_id);
bool TryFadeEffect(int slot);
void DispelMagic(Mob* casterm, uint16 spell_id, int effect_value);
void DispelMagic(Mob* casterm, uint16 spell_id, int effect_value, int chance = 1000, bool detrimental_only = false, bool benficial_only = false);
bool IsSuppressableBuff(int slot) const;
void SuppressBuff(Mob* caster, uint16 spell_id, int tic_count);
bool TrySpellEffectResist(uint16 spell_id);
int32 GetVulnerability(Mob *caster, uint32 spell_id, uint32 ticsremaining, bool from_buff_tic = false);
int64 GetFcDamageAmtIncoming(Mob *caster, int32 spell_id, bool from_buff_tic = false);