Exemplo n.º 1
0
 public void Defeated()
 {
     if (mAbilityData.mAbilityMoment == ABILITY_MOMENT.DEATHRATTLE)
     {
         mAbilityData.DoAbility(GetComponent <Card>());
     }
     else
     {
         mCardState.ToGraveyard();
     }
 }
Exemplo n.º 2
0
    public void WhenSummoned()
    {
        AbilitiesData abilityData = mCardReference.GetAbilityData();

        //AbilitiesCallback ability = abilityData.mAbilityCallback;

        if (abilityData.mAbilityMoment != ABILITY_MOMENT.BATTLECRY)
        {
            //Debug.LogWarning("Se cere battlecry cand abiltiatea nu e battlecry!!!");
            return;
        }

        //de sters
        //ConditionData condition = new ConditionData();
        //abilityData.Condition.Invoke(mCardReference, condition);
        //ability.Invoke(abilityData);
        abilityData.DoAbility(mCardReference);
    }