Exemple #1
0
        public override bool StartSpecialSkill(Cooldown sk)
        {
            if (sk.Skill.IconName == EnergyStars.Cooldown.Skill.IconName)
            {
                EnergyStars.StartCooldown(sk.Duration);
                return(true);
            }

            if (sk.Skill.IconName == Grace.Cooldown.Skill.IconName)
            {
                Grace.StartCooldown(sk.Duration);
                return(true);
            }

            if (sk.Skill.IconName == EdictOfJudgment.Cooldown.Skill.IconName)
            {
                EdictOfJudgment.StartCooldown(sk.Duration);
                return(true);
            }

            if (sk.Skill.IconName == DivineCharge.Cooldown.Skill.IconName)
            {
                DivineCharge.StartCooldown(sk.Duration);
                return(true);
            }

            if (sk.Skill.IconName != TripleNemesis.Cooldown.Skill.IconName)
            {
                return(false);
            }
            TripleNemesis.StartCooldown(sk.Duration);
            return(true);
        }
        private static void CheckEnergyStars(S_ABNORMALITY_END p)
        {
            if (!EnergyStarsIDs.Contains(p.AbnormalityId))
            {
                return;
            }
            if (!IsViewModelAvailable <PriestLayoutVM>(out var vm))
            {
                return;
            }

            vm !.EnergyStars.StopEffect();
        }
        private static void CheckEnergyStars(S_ABNORMALITY_REFRESH p)
        {
            if (!EnergyStarsIDs.Contains(p.AbnormalityId))
            {
                return;
            }
            if (!IsViewModelAvailable <PriestLayoutVM>(out var vm))
            {
                return;
            }

            vm !.EnergyStars.RefreshEffect(p.Duration);
        }