L2JMobius
Public Development => Solved/Invalid Bug Reports => Topic started by: Olivka on June 22, 2019, 10:20:59 PM
-
Hi.
error log after click "receive help from beneficial magic"
[22/06 22:14:28] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
[22/06 22:15:24] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
[22/06 22:15:30] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
[22/06 22:16:11] Bad RequestBypassToServer: java.lang.ClassCastException: org.l2jmobius.gameserver.model.actor.instance.NpcInstance cannot be cast to org.l2jmobius.gameserver.model.actor.instance.PlayerInstance
fix for me:
/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/instance/NpcInstance.java
:2480
skill.getEffects(this, player);
// doCast(skill);
BLESSING ALSO
:1787
skill.getEffects(this, player);
// doCast(skill);
-
I do not have any warnings upon recieving buffs.
In case you do not get effects casted on you try this.
https://pastebin.com/3q4GCEQk
Alternatively remove broadcastPacket(new MagicSkillUse
-
At first I just deleted doCast (skill) and added skill.getEffects (this, player); - everything worked
then added "broadcastPacket (new MagicSkillUse.." still works
-
How do you get the warning above?
I do not know about you but I see skills casted even without the broadcast.
-
magic... I restored the file from bitbucket and everything works
p.s. when i received an error the file was also a copy from the repository.
I will still test.
-
Solved.