public static void ExecuteAction(Action action, Hero player, Hero target) { HeroCooldownReductor.ReduceCooldowns(player); Debuff buff = (Debuff)action; buff.GivePlayerDebuff(buff, player, target); ActionResult.ShowActionResult($"{target.Name} GOT DEBUFFED WITH {action.Name} BY {player.Name}"); }
public static void ExecuteAction(Action action, Hero player, Hero target) { HeroCooldownReductor.ReduceCooldowns(player); Buff buff = (Buff)action; buff.GivePlayerBuff(buff, target); player.Actions.Where(a => a.Name == action.Name).First().SetCooldown(AbilityCooldownConstants.RenewCooldown); if (target.Name != player.Name) { ActionResult.ShowActionResult($"{player.Name} BUFFED {target.Name} WITH {action.Name}"); } else { ActionResult.ShowActionResult($"{player.Name} BUFFED HIMSELF WITH {action.Name}"); } }