Example #1
0
 override public void ResolveEffect(GridEntity source, Tile tile)
 {
     source.currentReactions.Add(new DefendSelfReaction(new List <Tile>()
     {
         tile
     }, source));
     // skill immediately "ends" the turn of the entity using it.
     source.ConsumeTurnResources();
 }
Example #2
0
    override public void ResolveEffect(GridEntity source, Tile tile)
    {
        var entity = tile.occupier;

        entity.damageReceiver = source;
        // skill immediately "ends" the turn of the entity using it.
        source.ConsumeTurnResources();
        // skill immediately freezes the entity next to it
        entity.currentMoves = 0;
        entity.outOfMoves   = true;

        entity.overrides.Add(new GridEntity.Override(
                                 "Protect Ally",
                                 0,
                                 () => {
            entity.damageReceiver = entity;
            return(true);
        }
                                 ));
    }