Ejemplo n.º 1
0
 public IReadOnlyCollection <IAction> GetActions(Hero abilityOwner, GameContext context)
 => _targeter.EnumerateTargets(abilityOwner, context)
 .Where(target => !target.Requisites.Contains(_inflictedRequisite))
 .SelectMany
 (
     target => new IAction[]
 {
     new AddRequisiteAction(target, _inflictedRequisite),
     new AddRequisiteAction(target, new RemoveRequisiteAbility(_inflictedRequisite, CommonTickPhases.CleanUp))
 }
 )
 .ToArray();
 public IReadOnlyCollection <IAction> GetActions(Hero abilityOwner, GameContext context)
 => _targeter.EnumerateTargets(abilityOwner, context)
 .Select(target => new DamageAction(target, _damage) as IAction)
 .ToArray();