[x] I understand that if I do not agree to the following points by marking the checkboxes my issue will be ignored.
[x] I have searched existing issues to see if the issue has already been opened, and I have checked the commit log to see if the issue has been resolved since my server was last updated.
[x] I am currently on the latest commit of the branch when reporting this bug
Code branch that is affected by this issue
AAEmu-client_version-3.0_client(2017-03-15)+
Bug description
Проявился баг с использованием предмета "Бочка с порохом", при использовании данного предмета клиент закрывается с ошибкой.
В логе такая ошибка:
14:03:08 [ERROR] PacketMarshaler - GamePacket: C->S type 160 .C2G.CSStartSkillPacket
14:03:08 [FATAL] PacketMarshaler - System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'. System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'.
at AAEmu.Game.Models.Game.Skills.Effects.SpawnGimmickEffect.Apply(BaseUnit caster, SkillCaster casterObj, BaseUnit target, SkillCastTarget targetObj, CastAction castObj, EffectSource source, SkillObject skillObject, DateTime time, CompressedGamePackets packetBuilder) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Effects/SpawnGimmickEffect.cs:line 37
at AAEmu.Game.Models.Game.Skills.Skill.ApplyEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit targetSelf, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 1025
at AAEmu.Game.Models.Game.Skills.Skill.ScheduleEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 756
at AAEmu.Game.Models.Game.Skills.Skill.Cast(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 651
at AAEmu.Game.Models.Game.Skills.Skill.Use(BaseUnit caster, SkillCaster casterCaster, SkillCastTarget targetCaster, SkillObject skillObject, Boolean bypassGcd) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 255
at AAEmu.Game.Core.Packets.C2G.CSStartSkillPacket.Read(PacketStream stream) in /server/AAEmuRage/AAEmu.Game/Core/Packets/C2G/CSStartSkillPacket.cs:line 99
at AAEmu.Game.Core.Network.Game.GamePacket.Decode(PacketStream ps) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GamePacket.cs:line 149
at AAEmu.Game.Core.Network.Game.GameProtocolHandler.OnReceive(GameConnection connection, Byte[] buf, Int32 bytes) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GameProtocolHandler.cs:line 171
14:03:08 [ERROR] GameProtocolHandler - System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'. System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'.
at AAEmu.Game.Models.Game.Skills.Effects.SpawnGimmickEffect.Apply(BaseUnit caster, SkillCaster casterObj, BaseUnit target, SkillCastTarget targetObj, CastAction castObj, EffectSource source, SkillObject skillObject, DateTime time, CompressedGamePackets packetBuilder) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Effects/SpawnGimmickEffect.cs:line 37
at AAEmu.Game.Models.Game.Skills.Skill.ApplyEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit targetSelf, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 1025
at AAEmu.Game.Models.Game.Skills.Skill.ScheduleEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 756
at AAEmu.Game.Models.Game.Skills.Skill.Cast(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 651
at AAEmu.Game.Models.Game.Skills.Skill.Use(BaseUnit caster, SkillCaster casterCaster, SkillCastTarget targetCaster, SkillObject skillObject, Boolean bypassGcd) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 255
at AAEmu.Game.Core.Packets.C2G.CSStartSkillPacket.Read(PacketStream stream) in /server/AAEmuRage/AAEmu.Game/Core/Packets/C2G/CSStartSkillPacket.cs:line 99
at AAEmu.Game.Core.Network.Game.GamePacket.Decode(PacketStream ps) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GamePacket.cs:line 149
at AAEmu.Game.Core.Network.Game.GameProtocolHandler.OnReceive(GameConnection connection, Byte[] buf, Int32 bytes) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GameProtocolHandler.cs:line 171
Steps to reproduce
Зайти в игру, создать глайдер например ИД 8000379, создать предмет "Бочка с порохом" ИД 15878, взлететь на глайдере и использовать умение Динамит
I confirm that:
Code branch that is affected by this issue
AAEmu-client_version-3.0_client(2017-03-15)+
Bug description
Проявился баг с использованием предмета "Бочка с порохом", при использовании данного предмета клиент закрывается с ошибкой.
В логе такая ошибка:
14:03:08 [ERROR] PacketMarshaler - GamePacket: C->S type 160 .C2G.CSStartSkillPacket 14:03:08 [FATAL] PacketMarshaler - System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'. System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'. at AAEmu.Game.Models.Game.Skills.Effects.SpawnGimmickEffect.Apply(BaseUnit caster, SkillCaster casterObj, BaseUnit target, SkillCastTarget targetObj, CastAction castObj, EffectSource source, SkillObject skillObject, DateTime time, CompressedGamePackets packetBuilder) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Effects/SpawnGimmickEffect.cs:line 37 at AAEmu.Game.Models.Game.Skills.Skill.ApplyEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit targetSelf, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 1025 at AAEmu.Game.Models.Game.Skills.Skill.ScheduleEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 756 at AAEmu.Game.Models.Game.Skills.Skill.Cast(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 651 at AAEmu.Game.Models.Game.Skills.Skill.Use(BaseUnit caster, SkillCaster casterCaster, SkillCastTarget targetCaster, SkillObject skillObject, Boolean bypassGcd) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 255 at AAEmu.Game.Core.Packets.C2G.CSStartSkillPacket.Read(PacketStream stream) in /server/AAEmuRage/AAEmu.Game/Core/Packets/C2G/CSStartSkillPacket.cs:line 99 at AAEmu.Game.Core.Network.Game.GamePacket.Decode(PacketStream ps) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GamePacket.cs:line 149 at AAEmu.Game.Core.Network.Game.GameProtocolHandler.OnReceive(GameConnection connection, Byte[] buf, Int32 bytes) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GameProtocolHandler.cs:line 171 14:03:08 [ERROR] GameProtocolHandler - System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'. System.InvalidCastException: Unable to cast object of type 'AAEmu.Game.Models.Game.Char.Character' to type 'AAEmu.Game.Models.Game.NPChar.Npc'. at AAEmu.Game.Models.Game.Skills.Effects.SpawnGimmickEffect.Apply(BaseUnit caster, SkillCaster casterObj, BaseUnit target, SkillCastTarget targetObj, CastAction castObj, EffectSource source, SkillObject skillObject, DateTime time, CompressedGamePackets packetBuilder) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Effects/SpawnGimmickEffect.cs:line 37 at AAEmu.Game.Models.Game.Skills.Skill.ApplyEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit targetSelf, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 1025 at AAEmu.Game.Models.Game.Skills.Skill.ScheduleEffects(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 756 at AAEmu.Game.Models.Game.Skills.Skill.Cast(BaseUnit caster, SkillCaster casterCaster, BaseUnit target, SkillCastTarget targetCaster, SkillObject skillObject) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 651 at AAEmu.Game.Models.Game.Skills.Skill.Use(BaseUnit caster, SkillCaster casterCaster, SkillCastTarget targetCaster, SkillObject skillObject, Boolean bypassGcd) in /server/AAEmuRage/AAEmu.Game/Models/Game/Skills/Skill.cs:line 255 at AAEmu.Game.Core.Packets.C2G.CSStartSkillPacket.Read(PacketStream stream) in /server/AAEmuRage/AAEmu.Game/Core/Packets/C2G/CSStartSkillPacket.cs:line 99 at AAEmu.Game.Core.Network.Game.GamePacket.Decode(PacketStream ps) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GamePacket.cs:line 149 at AAEmu.Game.Core.Network.Game.GameProtocolHandler.OnReceive(GameConnection connection, Byte[] buf, Int32 bytes) in /server/AAEmuRage/AAEmu.Game/Core/Network/Game/GameProtocolHandler.cs:line 171
Steps to reproduce
Зайти в игру, создать глайдер например ИД 8000379, создать предмет "Бочка с порохом" ИД 15878, взлететь на глайдере и использовать умение Динамит
Expected behavior
Screenshots
Any additional context for this bug