Exemplo n.º 1
0
    protected override bool AddPowerSourceAndTargets(PowerTaskList taskList)
    {
        this.m_attackType = taskList.GetAttackType();
        if (this.m_attackType == AttackType.INVALID)
        {
            return(false);
        }
        Entity attacker = taskList.GetAttacker();

        if (attacker != null)
        {
            base.SetSource(attacker.GetCard());
        }
        Entity defender = taskList.GetDefender();

        if (defender != null)
        {
            base.AddTarget(defender.GetCard());
        }
        return(true);
    }