本文整理匯總了C#中Board.IsCombo方法的典型用法代碼示例。如果您正苦於以下問題:C# Board.IsCombo方法的具體用法?C# Board.IsCombo怎麽用?C# Board.IsCombo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Board
的用法示例。
在下文中一共展示了Board.IsCombo方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
board.HeroEnemy.Damage(2 + board.GetSpellPower(),ref board);
if (board.IsCombo())
board.Hand.Add(Card.Create("EX1_137", true, Id));
}
示例2: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
if(target != null)
{
if (board.IsCombo())
target.Damage(2, ref board);
}
}
示例3: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
if(target != null)
{
if(board.IsCombo())
{
target.Damage(4 + board.GetSpellPower(), ref board);
}
else
{
target.Damage(2 + board.GetSpellPower(), ref board);
}
}
}
示例4: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target, index);
if (target != null)
{
if (board.IsCombo())
{
target.currentAtk += 4;
}
else
{
target.currentAtk += 2;
}
}
}
示例5: OnPlay
public override void OnPlay(ref Board board, Card target = null,int index = 0,int choice = 0)
{
base.OnPlay(ref board, target,index);
if (!board.IsCombo())
return;
int cardsplayed = 0;
foreach(Action a in board.ActionsStack)
{
if (a.Type == Action.ActionType.CAST_MINION || a.Type == Action.ActionType.CAST_SPELL || a.Type == Action.ActionType.CAST_WEAPON)
{
cardsplayed++;
}
}
board.GetCard(Id).currentAtk += 2 * cardsplayed;
board.GetCard(Id).CurrentHealth += 2 * cardsplayed;
board.GetCard(Id).maxHealth += 2 * cardsplayed;
}