Ejemplo n.º 1
0
    public void Notify(Tile target)
    {
        DamageData dd = new DamageData();

        if (target.Unit)
        {
            dd.target = target.Unit;
        }
        dd.source = GetComponent <Unit>();

        PinEffect.StaticApply(dd);
        FinishUse();
    }
Ejemplo n.º 2
0
    public void Notify(Tile target)
    {
        DamageData dd = new DamageData();

        if (target.Unit)
        {
            dd.target = target.Unit;
        }
        dd.source = GetComponent <Unit>();

        PinEffect.StaticApply(dd);
        uses--;
        dd.source.StartAttackSequence(target.Unit);
        //FinishUse();
    }
Ejemplo n.º 3
0
 public int StaticApply(DamageData dd, int duration = 1)
 {
     PinEffect.StaticApply(dd, duration);
     return(Damage.StaticApply(dd));        // may kill target, do last. Just to keep the sequence more safe.
 }