CardBuff,Exhaustible
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user