Exemple #1
0
    void ApplyAction(int actionType, int actionArg, int actionArg2, BattleEffectItemData cardData, BattlePlayer owner, BattlePlayer target, object userdata)
    {
        if (target == null)
        {
            target = IsMe ? Game.BattleManager.OppPlayer : Game.BattleManager.MyPlayer;
        }
        BattleAction battleAction = BattleAction.CreateNew((BattleActionType)actionType, actionArg, actionArg2, cardData, owner, target, userdata);

        battleAction.Excute();
    }