ahmedsuffian / aionxemu

Automatically exported from code.google.com/p/aionxemu
0 stars 0 forks source link

Attack Fortress Guards #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Core revision:r257

Bug description: When players starts to attack the guards of any abyss 
fortress, the server the error below overflow the whole gameserver log, 
possibly crash on weaker systems.

What steps will reproduce the problem?: Just have attack constantly any 
fortress guards skills/normal attacks.

Please copy/paste errors below:
[ERROR 2011-04-13 01:46:44] gameserver.network.aion.AionClientPacket:71 - Error 
handling client (test) message :[C] 0x92 CM_ATTACK
java.lang.ClassCastException: gameserver.model.siege.FortressGate cannot be 
cast to gameserver.model.gameobjects.player.Player
    at gameserver.restrictions.PlayerRestrictions.canAttack(PlayerRestrictions.java:245)
    at gameserver.restrictions.RestrictionsManager.canAttack(RestrictionsManager.java:204)
    at gameserver.controllers.PlayerController.attackTarget(PlayerController.java:296)
    at gameserver.network.aion.clientpackets.CM_ATTACK.runImpl(CM_ATTACK.java:72)
    at gameserver.network.aion.AionClientPacket.run(AionClientPacket.java:64)
    at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:54)
    at gameserver.taskmanager.FIFORunnableQueue.removeAndExecuteFirst(FIFORunnableQueue.java:28)
    at gameserver.taskmanager.FIFOExecutableQueue.run(FIFOExecutableQueue.java:65)
    at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:54)
    at com.aionemu.commons.utils.concurrent.ExecuteWrapper.run(ExecuteWrapper.java:39)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by fourthdi...@gmail.com on 13 Apr 2011 at 12:54

GoogleCodeExporter commented 9 years ago
Apply patch, and report test results:

Original comment by ZeroSign...@gmail.com on 14 Apr 2011 at 11:01

Attachments:

GoogleCodeExporter commented 9 years ago
i had to attach the "import gameserver.model.siege.FortressGate;" to apply the 
patch, i'll test it soon, thank you

Original comment by fourthdi...@gmail.com on 14 Apr 2011 at 9:52

GoogleCodeExporter commented 9 years ago
it's solved, thank you

Original comment by fourthdi...@gmail.com on 15 Apr 2011 at 3:04

GoogleCodeExporter commented 9 years ago
Committed Revision 259.

Original comment by ZeroSign...@gmail.com on 18 Apr 2011 at 3:12