Ejemplo n.º 1
0
    public override void OnCast(Caster who, Soldier target)
    {
        if (who.AuraActive(AURA.FLASH_OF_FUTURE))
        {
            if (Random.Range(0, 100) < VALUES.FLASH_OF_FUTURE_PROC2 + who.AuraStacks(AURA.FLASH_OF_FUTURE))
            {
                GameCore.Core.buffSystem.BuffMe(CASTERBUFF.FLASH_OF_FUTURE_LIGHT, 900f, who);
                GameObject _icon = GameCore.Core.FindSpellByName("Word of Kings: Light").myIcon;
                _icon.GetComponent <scrSpellButton>().Animate(2f);
            }
        }

        target.CastFinished(this, who);
    }
Ejemplo n.º 2
0
    public override void OnCast(Caster who, Soldier target)
    {
        if (who.myAura[(int)AURA.HAND_OF_LIGHT].isActive)
        {
            if (Random.Range(0, 100) < 30 + who.myAura[(int)AURA.HAND_OF_LIGHT].stacks * 10)
            {
                GameCore.Core.buffSystem.BuffMe(CASTERBUFF.HAND_OF_LIGHT, 900f, who);
            }
        }

        if (who.AuraActive(AURA.FLASH_OF_FUTURE))
        {
            if (Random.Range(0, 100) < VALUES.FLASH_OF_FUTURE_PROC1 + who.AuraStacks(AURA.FLASH_OF_FUTURE) * (5f / 3f))
            {
                GameCore.Core.buffSystem.BuffMe(CASTERBUFF.FLASH_OF_FUTURE_FAITH, 900f, who);
                GameObject _icon = GameCore.Core.FindSpellByName("Word of Kings: Faith").myIcon;
                _icon.GetComponent <scrSpellButton>().Animate(2f);
            }
        }

        target.CastFinished(this, who);
    }