private void OnDicePlacement(DiceHolder holder, AbilityCard card) { int diceAmount = 0; foreach (DiceHolder dh in _diceHolders) { if (dh.ContainedDice != null) { diceAmount++; } } if (diceAmount == _diceHolders.Length) { UseAbility(Fight); var dices = Fight.GetPlayerDice(); foreach (DiceHolder dh in _diceHolders) { if (_hideDiceOnUse) { dices.Remove(dh.ContainedDice); } dh.DeselectDice(_hideDiceOnUse); } CheckAvailable(); } }
protected override bool CanUse(FightPanel fight) { return(fight.GetEnemyDice().Count > 1 && fight.GetPlayerDice().Count > 2); }