继续
This commit is contained in:
@@ -7,22 +7,22 @@ namespace Continentis.MainGame.Card
|
||||
{
|
||||
public partial class CombatBuffSubmodule : SubmoduleBase<CardLogicBase>
|
||||
{
|
||||
public List<CombatBuffBase> buffList;
|
||||
public List<CardCombatBuffBase> buffList;
|
||||
|
||||
public CombatBuffSubmodule(CardLogicBase owner) : base(owner)
|
||||
{
|
||||
buffList = new List<CombatBuffBase>();
|
||||
buffList = new List<CardCombatBuffBase>();
|
||||
}
|
||||
}
|
||||
|
||||
public partial class CombatBuffSubmodule
|
||||
{
|
||||
public T GetBuff<T>() where T : CombatBuffBase
|
||||
public T GetBuff<T>() where T : CardCombatBuffBase
|
||||
{
|
||||
return (T)buffList.Find(x => x.GetType() == typeof(T));
|
||||
}
|
||||
|
||||
public bool HasBuff<T>() where T : CombatBuffBase
|
||||
public bool HasBuff<T>() where T : CardCombatBuffBase
|
||||
{
|
||||
return buffList.Exists(x => x.GetType() == typeof(T));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user