public override void FightBack(Minion _me, Minion _target) { if (_target.ContainTag(Tag.CloseCombat)) { _target.BeingFightBack(_me); } }
void AddMinion(Minion _newMinion, PositionVO _position) { Dictionary<int, Minion> tempMinions = new Dictionary<int, Minion>(minions); foreach (Minion tMinion in tempMinions.Values) { if (tMinion.PlayerType == GameManager.Instance.ActivePlayerType) { tMinion.PlayerSummonMinion(_newMinion); } else { tMinion.OpponentSummonMinion(_newMinion); } } minions[availableMinionID] = _newMinion; minionPosition[_position] = availableMinionID; _newMinion.SetIDAndPosition(availableMinionID, _position); CommandManager.Instance.AddMinion(availableMinionID); if(_newMinion.ContainTag(Tag.Hero)) { if(_newMinion.PlayerType == PlayerType.You) { listofYourHeroID.Add(_newMinion.ID); } else { listofOpponentHeroID.Add(_newMinion.ID); } } availableMinionID += 1; }