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); }
private int ApplyOverhealingModifiers(int overheal_value, Caster _caster, HEALSOURCE source) { if (core.buffSystem.FindBuff(CASTERBUFF.DIVINE_INTERVENTION) != null) { if (_caster.AuraActive(AURA.GUIDANCE_OF_RAELA)) { if ((source != HEALSOURCE.GUIDANCE_OF_RAELA) && (source != HEALSOURCE.WOK_LOYALTY)) { core.CastAutoSpell((int)SPELL.GUIDANCE_OF_RAELA, null, overheal_value, overheal_value); return(0); } } } return(overheal_value); }
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); }