Ejemplo n.º 1
0
    public static void Potion_HpHeal(int Heal) //됨
    {
        StackSkill s = TempSkill as StackSkill;

        s.PassiveCount.Add("Heal", Heal);
        s.PassiveCount.Add("Using", 0);
        s.isUseTurn    = false;
        s.isUseToStack = true;
        if (s == null)
        {
            return;
        }
        s.ActiveSkillSet(delegate(Skill skill)
        {
            if (s.TempStack != 0 && skill.PassiveCount["Using"] != 1)
            {
                skill.PassiveCount["Using"] = 1;
                s.StackMinus();
                CharacterStatus Stat = skill.GetOrder();
                Stat.HpDown(-(int)s.PassiveCount["Heal"]);
                if (Stat.MaxHP < Stat.HP)
                {
                    Stat.HP = Stat.MaxHP;
                }
            }
        });
        s.AddPassive(delegate(Skill skill)
        {
            skill.PassiveCount["Using"] = 0;
        }, "End");
        TempSkill = s;
    }