Esempio n. 1
0
    private void ExecShieldBash(Character player, Character target, CriticalType critical)
    {
        Debug.Log(MethodBase.GetCurrentMethod());
        bool success = ExecNormalAttack(player, target, SecondaryLogic.ShieldBash(player), critical);

        if (success)
        {
            if (target.IsResistStun)
            {
                StartAnimation(target.objGroup.gameObject, Fix.EFFECT_RESIST_STUN, Fix.COLOR_NORMAL);
                return;
            }

            target.objBuffPanel.AddBuff(prefab_Buff, Fix.EFFECT_STUN, SecondaryLogic.ShieldBash_Turn(player), 0, 0);
            StartAnimation(target.objGroup.gameObject, Fix.EFFECT_STUN, Fix.COLOR_NORMAL);
        }
    }