public override void Execute(Caster who, Soldier target, int val = 0) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.WORD_OF_KINGS_FAITH); int _dur = spellInfo.ticksCount * spellInfo.HoTgap; int _gap = spellInfo.HoTgap; target.BuffMe(BUFF.WORD_OF_KINGS_FAITH, _dur, who, spellInfo, _gap); target.BuffMe(BUFF.FAITH, 900, who, spellInfo, 900); GameCore.Core.paladinSparkHandler.AddSparks(1); if (!target.frame.GetComponent <AudioSource>().isPlaying) { target.frame.GetComponent <AudioSource>().PlayOneShot(Resources.Load <AudioClip>("Sounds/WoKFaithSound")); } }
public override void Execute(Caster who, Soldier target, int minval = 0, int maxval = 0) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.WORD_OF_KINGS_LOYALTY); target.BuffMe((int)Buff.DB.WORD_OF_KINGS_LOYALTY, spellInfo.HoTgap * spellInfo.ticksCount + who.myAura[(int)AURA.CONSECRATION].stacks * VALUES.CONSECRATION_DUR_INCREASE, who, spellInfo, 0); int _val = who.myTalentTree.GetTalentPointsByName("Royalty"); if (_val > 0) { target.BuffMe((int)Buff.DB.ROYALTY, _val * 90, who, spellInfo, 0); } if (!target.frame.GetComponent <AudioSource>().isPlaying) { target.frame.GetComponent <AudioSource>().PlayOneShot(Resources.Load <AudioClip>("Sounds/WoKLoyaltySound")); } }
public override void Execute(Caster who, Soldier target, int val = 0) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.TWILIGHT_BEAM); int _tempgap = spellInfo.HoTgap - who.myTalentTree.GetTalentPointsByName("Dawn") * 6; int _dur = spellInfo.ticksCount * _tempgap; target.BuffMe(BUFF.TWILIGHT_BEAM, _dur, who, spellInfo, _tempgap); }
public override void Execute(Caster who, Soldier target, int val = 0) { if (target.effectSystem.FindBuff(BUFF.SOOTHING_VOID) == null) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.SOOTHING_VOID); //Object.Instantiate(Resources.Load("Visuals/WanShaParticle"), target.frame.transform.position + new Vector3(1.4f, -0.5f), Quaternion.Euler(0, 0, 0)); //target.Heal(_value, _value + 5f, GameCore.Core.criticalStrikeChance, who, this, HEALSOURCE.SOOTHING_VOID, spellInfo.healtype); target.BuffMe(BUFF.SOOTHING_VOID, spellInfo.ticksCount * spellInfo.HoTgap, who, spellInfo, spellInfo.HoTgap); } }
public override void Execute(Caster who, Soldier target, int val = 0) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.WORD_OF_KINGS_LOYALTY); int dur = spellInfo.HoTgap * spellInfo.ticksCount; target.BuffMe(BUFF.WORD_OF_KINGS_LOYALTY, dur, who, spellInfo, 0); GameCore.Core.paladinSparkHandler.AddSparks(4); if (!target.frame.GetComponent <AudioSource>().isPlaying) { target.frame.GetComponent <AudioSource>().PlayOneShot(Resources.Load <AudioClip>("Sounds/WoKLoyaltySound")); } }
public override void Execute(Caster who, Soldier target, int minval = 0, int maxval = 0) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.WORD_OF_KINGS_FAITH); int _dur = (int)(spellInfo.ticksCount * spellInfo.HoTgap / (1f + who.myAura[(int)AURA.EMPATHY].stacks * VALUES.EMPATHY_PERCENT2)); int _gap = (int)(spellInfo.HoTgap / (1f + who.myAura[(int)AURA.EMPATHY].stacks * VALUES.EMPATHY_PERCENT2)); if (who.myAura[(int)AURA.CONSECRATION].isActive) { GameCore.Core.buffSystem.BuffMe(CASTERBUFF.CONSECRATION, 600f, who); } target.BuffMe((int)Buff.DB.WORD_OF_KINGS_FAITH, _dur, who, spellInfo, _gap); if (!target.frame.GetComponent <AudioSource>().isPlaying) { target.frame.GetComponent <AudioSource>().PlayOneShot(Resources.Load <AudioClip>("Sounds/WoKFaithSound")); } }
public override void Execute(Caster who, Soldier target, int minval = 0, int maxval = 0) { SpellInfo spellInfo = GameCore.Core.spellRepository.Get(SPELL.TWILIGHT_BEAM); int _tempgap = spellInfo.HoTgap - who.myTalentTree.GetTalentPointsByName("Dawn") * 6; int _dur = spellInfo.ticksCount * _tempgap; target.BuffMe((int)Buff.DB.TWILIGHT_BEAM, _dur, who, spellInfo, _tempgap); int _points = who.myTalentTree.GetTalentPointsByName("Dream"); if (_points > 0) { Buff myb = target.effectSystem.FindBuff((int)Buff.DB.SOOTHING_VOID); if (myb != null) { myb.refreshCount = 1; myb.duration = 0; target.Shield((int)(spellInfo.baseValue2 * _points * 0.75f), HEALSOURCE.DREAM); } } }