From 40e036c2965f64f414e74948498ce06bf74d8d46 Mon Sep 17 00:00:00 2001 From: DeKaN Date: Sat, 20 Aug 2022 12:40:33 +0400 Subject: [PATCH] Fix some warnings --- .../GSSystem/PlayerSystem/ConversationManager.cs | 1 - .../Implementations/HeroSkills/Necromancer.cs | 2 +- .../PowerSystem/Payloads/DeathPayload.cs | 16 ++++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/ConversationManager.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/ConversationManager.cs index e955a76..c525c45 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/ConversationManager.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PlayerSystem/ConversationManager.cs @@ -728,7 +728,6 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem foreach (var ghost in cryptwrld.GetActorsBySNO(5360)) ghost.Destroy(); break; - break; #endregion #region A1-Q4 Event_DoK case 139823: //Event_DoK_Kill.cnv diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Implementations/HeroSkills/Necromancer.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Implementations/HeroSkills/Necromancer.cs index 9f6e012..b2dbbab 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Implementations/HeroSkills/Necromancer.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Implementations/HeroSkills/Necromancer.cs @@ -98,7 +98,7 @@ namespace DiIiS_NA.GameServer.GSSystem.PowerSystem.Implementations { WeaponDamage(Targets, 1.50f, DamageType.Cold); EffectActor Explosion1 = SpawnEffect(defaultEff, TargetPosition, 0, WaitSeconds(2f)); - Explosion.PlayEffect(Effect.PlayEffectGroup, 471410); + Explosion1.PlayEffect(Effect.PlayEffectGroup, 471410); foreach (var Target in Targets.Actors) AddBuff(Target, new DebuffChilled(0.4f, WaitSeconds(0.5f))); } diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs index 6c27381..3d989a0 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/PowerSystem/Payloads/DeathPayload.cs @@ -152,18 +152,18 @@ namespace DiIiS_NA.GameServer.GSSystem.PowerSystem.Payloads }); ((this.Target as NecromancerSkeleton_A).Master as Player).NecroSkeletons.Remove(this.Target); } - if (this is BaseGolem || - this is IceGolem || - this is BoneGolem || - this is DecayGolem || - this is ConsumeFleshGolem || - this is BloodGolem) + if (this.Target is BaseGolem || + this.Target is IceGolem || + this.Target is BoneGolem || + this.Target is DecayGolem || + this.Target is ConsumeFleshGolem || + this.Target is BloodGolem) { - ((this.Target as NecromancerSkeleton_A).Master as Player).InGameClient.SendMessage(new MessageSystem.Message.Definitions.Pet.PetDetachMessage() + ((this.Target as Minion).Master as Player).InGameClient.SendMessage(new MessageSystem.Message.Definitions.Pet.PetDetachMessage() { PetId = this.Target.DynamicID(((this.Target as Minion).Master as Player)) }); - ((this.Target as NecromancerSkeleton_A).Master as Player).ActiveGolem = null; + ((this.Target as Minion).Master as Player).ActiveGolem = null; } if (this.Target is Player) {