Ejemplo n.º 1
0
        public override void CheckAbnormality(S_ABNORMALITY_END p)
        {
            CheckVoc(p);

            if (!SessionManager.IsMe(p.TargetId))
            {
                return;
            }

            if (CritAuraIDs.Contains(p.AbnormalityId))
            {
                TccUtils.CurrentClassVM <MysticLayoutVM>().Auras.CritAura = false;
            }
            else if (ManaAuraIDs.Contains(p.AbnormalityId))
            {
                TccUtils.CurrentClassVM <MysticLayoutVM>().Auras.ManaAura = false;
            }
            else if (CritResAuraIDs.Contains(p.AbnormalityId))
            {
                TccUtils.CurrentClassVM <MysticLayoutVM>().Auras.CritResAura = false;
            }
            else if (SwiftAuraIDs.Contains(p.AbnormalityId))
            {
                TccUtils.CurrentClassVM <MysticLayoutVM>().Auras.SwiftAura = false;
            }
            else if (p.AbnormalityId == VowId)
            {
                TccUtils.CurrentClassVM <MysticLayoutVM>().Vow.Buff.Refresh(0, CooldownMode.Normal);
            }
            else if (ElementalizeIDs.Contains(p.AbnormalityId))
            {
                TccUtils.CurrentClassVM <MysticLayoutVM>().Elementalize = false;
            }
        }
Ejemplo n.º 2
0
 private static void CheckUnleashAbnormals(S_ABNORMALITY_BEGIN p)
 {
     if (TimeManager.Instance.CurrentRegion == RegionEnum.KR)  // KR patch by HQ
     {
         if (p.AbnormalityId == SinisterKR && SessionManager.IsMe(p.TargetId))
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().SinisterTracker.Val = p.Stacks;
         }
         if (p.AbnormalityId == DexterKR && SessionManager.IsMe(p.TargetId))
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().DexterTracker.Val = p.Stacks;
         }
         if (p.AbnormalityId == Rampage && SessionManager.IsMe(p.TargetId))
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().RampageTracker.Val = p.Stacks;
         }
     }
     else
     {
         if (p.AbnormalityId == Sinister && SessionManager.IsMe(p.TargetId))
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().SinisterTracker.Val = p.Stacks;
         }
         if (p.AbnormalityId == Dexter && SessionManager.IsMe(p.TargetId))
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().DexterTracker.Val = p.Stacks;
         }
         if (p.AbnormalityId == Rampage && SessionManager.IsMe(p.TargetId))
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().RampageTracker.Val = p.Stacks;
         }
     }
 }
Ejemplo n.º 3
0
 private static void CheckUnleashAbnormals(S_ABNORMALITY_END p)
 {
     if (TimeManager.Instance.CurrentRegion == RegionEnum.KR)  // KR patch by HQ
     {
         if (p.AbnormalityId == SinisterKR)
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().SinisterTracker.Val = 0;
         }
         if (p.AbnormalityId == DexterKR)
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().DexterTracker.Val = 0;
         }
         if (p.AbnormalityId == Rampage)
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().RampageTracker.Val = 0;
         }
     }
     else
     {
         if (p.AbnormalityId == Sinister)
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().SinisterTracker.Val = 0;
         }
         if (p.AbnormalityId == Dexter)
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().DexterTracker.Val = 0;
         }
         if (p.AbnormalityId == Rampage)
         {
             TccUtils.CurrentClassVM <BerserkerLayoutVM>().RampageTracker.Val = 0;
         }
     }
 }
 private static void CheckAssassinate(S_ABNORMALITY_END p)
 {
     if (AssassinateId != p.AbnormalityId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ReaperLayoutVM>().ShroudedEscape.Buff.Refresh(0, CooldownMode.Normal);
 }
 private static void CheckAssaultStance(S_ABNORMALITY_END p)
 {
     if (!AstanceIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <WarriorLayoutVM>().Stance.CurrentStance = WarriorStance.None;
 }
 private static void CheckGshout(S_ABNORMALITY_REFRESH p)
 {
     if (!GShoutIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <LancerLayoutVM>().GuardianShout.Buff.Start(p.Duration);
 }
 private static void CheckLineHeld(S_ABNORMALITY_REFRESH p)
 {
     if (p.AbnormalityId != LineHeldId)
     {
         return;
     }
     TccUtils.CurrentClassVM <LancerLayoutVM>().LH.RefreshBaseBuff(p.Stacks, p.Duration);
 }
 private static void CheckManaBoost(S_ABNORMALITY_END p)
 {
     if (!IsManaBoost(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <SorcererLayoutVM>().ManaBoost.Buff.Refresh(0, CooldownMode.Normal);
 }
Ejemplo n.º 9
0
 private static void CheckEdict(S_ABNORMALITY_REFRESH p)
 {
     if (!EdictIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <PriestLayoutVM>().EdictOfJudgment.Buff.Refresh(p.Duration, CooldownMode.Normal);
 }
Ejemplo n.º 10
0
 private static void CheckEdict(S_ABNORMALITY_BEGIN p)
 {
     if (!EdictIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <PriestLayoutVM>().EdictOfJudgment.Buff.Start(p.Duration);
 }
Ejemplo n.º 11
0
 private static void CheckGrace(S_ABNORMALITY_END p)
 {
     if (p.AbnormalityId != GraceId)
     {
         return;
     }
     TccUtils.CurrentClassVM <PriestLayoutVM>().Grace.Buff.Refresh(0, CooldownMode.Normal);
 }
 private static void CheckGodsfall(S_ABNORMALITY_REFRESH p)
 {
     if (p.AbnormalityId != GodsfallId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ValkyrieLayoutVM>().Godsfall.Buff.Refresh(p.Duration, CooldownMode.Normal);
 }
 private static void CheckGodsfall(S_ABNORMALITY_BEGIN p)
 {
     if (p.AbnormalityId != GodsfallId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ValkyrieLayoutVM>().Godsfall.Buff.Start(p.Duration);
 }
 private static void CheckRagnarok(S_ABNORMALITY_END p)
 {
     if (p.AbnormalityId != RagnarokId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ValkyrieLayoutVM>().Ragnarok.Buff.Refresh(0, CooldownMode.Normal);
 }
 private static void CheckRagnarok(S_ABNORMALITY_BEGIN p)
 {
     if (p.AbnormalityId != RagnarokId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ValkyrieLayoutVM>().Ragnarok.Buff.Start(p.Duration);
 }
 private static void CheckInnerHarmony(S_ABNORMALITY_END p)
 {
     if (p.AbnormalityId != InnerHarmonyBuffId)
     {
         return;
     }
     TccUtils.CurrentClassVM <NinjaLayoutVM>().InnerHarmony.Buff.Refresh(0, CooldownMode.Normal);
 }
 private static void CheckManaBoost(S_ABNORMALITY_BEGIN p)
 {
     if (!IsManaBoost(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <SorcererLayoutVM>().ManaBoost.Buff.Start(p.Duration);
 }
Ejemplo n.º 18
0
 private static void CheckEnergyStars(S_ABNORMALITY_BEGIN p)
 {
     if (!EnergyStarsIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <PriestLayoutVM>().EnergyStars.Buff.Start(p.Duration);
 }
 private static void CheckLineHeld(S_ABNORMALITY_BEGIN p)
 {
     if (p.AbnormalityId != LineHeldId)
     {
         return;
     }
     TccUtils.CurrentClassVM <LancerLayoutVM>().LH.StartBaseBuff(p.Duration);
 }
Ejemplo n.º 20
0
 private static void CheckEnergyStars(S_ABNORMALITY_END p)
 {
     if (!EnergyStarsIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <PriestLayoutVM>().EnergyStars.Buff.Refresh(0, CooldownMode.Normal);
 }
 private static void CheckLineHeld(S_ABNORMALITY_END p)
 {
     if (p.AbnormalityId != LineHeldId)
     {
         return;
     }
     TccUtils.CurrentClassVM <LancerLayoutVM>().LH.Stop();
 }
Ejemplo n.º 22
0
 private static void CheckGrace(S_ABNORMALITY_BEGIN p)
 {
     if (p.AbnormalityId != GraceId)
     {
         return;
     }
     TccUtils.CurrentClassVM <PriestLayoutVM>().Grace.Buff.Start(p.Duration);
 }
 private static void CheckGshout(S_ABNORMALITY_END p)
 {
     if (!GShoutIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <LancerLayoutVM>().GuardianShout.Buff.Refresh(0, CooldownMode.Normal);
 }
Ejemplo n.º 24
0
 private static void CheckFocusX(S_ABNORMALITY_REFRESH p)
 {
     if (p.AbnormalityId != FocusXId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ArcherLayoutVM>().Focus.StartFocusX(p.Duration);
 }
Ejemplo n.º 25
0
 private static void CheckFocusX(S_ABNORMALITY_END p)
 {
     if (p.AbnormalityId != FocusXId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ArcherLayoutVM>().Focus.StopFocusX();
 }
 private static void CheckFocus(S_ABNORMALITY_END p)
 {
     if (p.AbnormalityId != FocusId)
     {
         return;
     }
     TccUtils.CurrentClassVM <NinjaLayoutVM>().FocusOn = false;
 }
 private static void CheckTraverseCut(S_ABNORMALITY_END p)
 {
     if (!TraverseCutIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <WarriorLayoutVM>().TraverseCut.Val = 0;
 }
 private static void CheckInnerHarmony(S_ABNORMALITY_BEGIN p)
 {
     if (p.AbnormalityId != InnerHarmonyBuffId)
     {
         return;
     }
     TccUtils.CurrentClassVM <NinjaLayoutVM>().InnerHarmony.Buff.Start(p.Duration);
 }
 private static void CheckDefensiveStance(S_ABNORMALITY_BEGIN p)
 {
     if (!DstanceIDs.Contains(p.AbnormalityId))
     {
         return;
     }
     TccUtils.CurrentClassVM <WarriorLayoutVM>().Stance.CurrentStance = WarriorStance.Defensive;
 }
 private static void CheckAssassinate(S_ABNORMALITY_BEGIN p)
 {
     if (AssassinateId != p.AbnormalityId)
     {
         return;
     }
     TccUtils.CurrentClassVM <ReaperLayoutVM>().ShroudedEscape.Buff.Start(p.Duration);
 }