예제 #1
0
 public static void CheckHurricane(S_ABNORMALITY_BEGIN msg)
 {
     if (msg.AbnormalityId != HurricaneId || !SessionManager.IsMe(msg.CasterId))
     {
         return;
     }
     SessionManager.DB.SkillsDatabase.TryGetSkill(HurricaneId, Class.Common, out var hurricane);
     SkillManager.AddSkillDirectly(hurricane, HurricaneDuration);
 }
예제 #2
0
 public static void CheckHurricane(S_ABNORMALITY_BEGIN msg)
 {
     if (msg.AbnormalityId == HurricaneId)
     {
         Debug.WriteLine("Checking hurricane; id={0} caster={1} player={2}", msg.AbnormalityId, msg.CasterId, SessionManager.CurrentPlayer.EntityId);
     }
     if (msg.AbnormalityId == HurricaneId && msg.CasterId == SessionManager.CurrentPlayer.EntityId)
     {
         SkillsDatabase.TryGetSkill(HurricaneId, Class.Common, out Skill hurricane);
         SkillManager.AddSkillDirectly(hurricane, HurricaneDuration);
     }
 }
 protected static void StartPrecooldown(Skill sk, uint duration)
 {
     SkillManager.AddSkillDirectly(sk, duration, CooldownType.Skill, CooldownMode.Pre); //CooldownWindowViewModel.Instance.AddOrRefresh(new Cooldown(sk, duration, CooldownType.Skill, CooldownMode.Pre));
 }