Example #1
0
    void HealPlayer()
    {
        if (MPC == null)
        {
            MPC = GameObject.Find("MainPlayer").GetComponent <MainPlayer>();
        }
        HealingBuff HB = HealingBuff.Generate(MPC.GetMaxStats(STATSTYPE.HEALTH) * 0.1f, 5f);

        HB.ApplyBuff(null, MPC);
    }
Example #2
0
    private void ApplyHealingBuff()
    {
        HealingBuff HB = HealingBuff.Generate(OC.GetMaxStats(STATSTYPE.HEALTH) * (DotHeal_MaxHP_Percentage / 100), Duration);

        HB.ApplyBuff(OC, OC);
    }