CardBuff,Exhaustible

This commit is contained in:
SoulliesOfficial
2025-11-01 06:13:58 -04:00
parent ee1d3d9c0a
commit abc540809f
30 changed files with 395 additions and 46 deletions

View File

@@ -45,6 +45,17 @@ namespace Continentis.MainGame.Character
{
return buffList.Exists(x => x.GetType() == typeof(T));
}
public List<CharacterCombatBuffBase> Dispel(BuffDispelLevel dispelLevel, CharacterBase dispelSource)
{
List<CharacterCombatBuffBase> dispelledBuffs = buffList
.Where(buff => buff.dispelThreshold <= dispelLevel &&
buff.buffType == (owner.IsAlly(dispelSource) ? BuffType.Negative : BuffType.Positive))
.ToList();
dispelledBuffs.For(buff => buff.Remove());
return dispelledBuffs;
}
}
public partial class CombatBuffSubmodule