protected override void OnSendStart() { if (Singleton <PvpManager> .Instance.IsInPvp && PvpServerStartSkillHeroList.IsStartByServer(base.unit.npc_id)) { return; } HitSkillInfo hitSkillInfo = new HitSkillInfo(); hitSkillInfo.unitId = base.unit.unique_id; hitSkillInfo.skillId = this.skillKey.SkillID; if (this.targetUnits != null) { hitSkillInfo.targetIds = new List <short>(); for (int i = 0; i < this.targetUnits.Count; i++) { if (this.targetUnits[i] != null) { hitSkillInfo.targetIds.Add((short)this.targetUnits[i].unique_id); } } } PvpEvent.SendHitSkillEvent(hitSkillInfo); }
public static void SendHitSkillEvent(HitSkillInfo info) { }