ahmedsuffian / aionxemu

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

Summon Rest Bug #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Changing between Rest and Guard Mode=>Summon gets additional invul

change SummonController:

public void guardMode() {
        getOwner().setMode(SummonMode.GUARD);
        Player master = getOwner().getMaster();
        PacketSendUtility.sendPacket(master,                     SM_SYSTEM_MESSAGE.SUMMON_GUARDMODE(getOwner().getNameId()));
        PacketSendUtility.sendPacket(master, new SM_SUMMON_UPDATE(getOwner()));
-        checkCurrentHp();

to

public void guardMode() {
        getOwner().setMode(SummonMode.GUARD);
        Player master = getOwner().getMaster();
        PacketSendUtility.sendPacket(master, SM_SYSTEM_MESSAGE.SUMMON_GUARDMODE(getOwner().getNameId()));
        PacketSendUtility.sendPacket(master, new SM_SUMMON_UPDATE(getOwner()));
+        getOwner().getController().cancelTask(TaskId.RESTORE);

Original issue reported on code.google.com by mike.wai...@web.de on 20 Apr 2011 at 3:03

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

Original comment by ZeroSign...@gmail.com on 20 Apr 2011 at 11:07

Attachments:

GoogleCodeExporter commented 9 years ago
Oh, add this too (double klick Rest unfixed)

   public void restMode() {
+       getOwner().getController().cancelTask(TaskId.RESTORE);
        getOwner().setMode(SummonMode.REST);
        Player master = getOwner().getMaster();
        PacketSendUtility.sendPacket(master, SM_SYSTEM_MESSAGE.SUMMON_RESTMODE(getOwner().getNameId()));
        PacketSendUtility.sendPacket(master, new SM_SUMMON_UPDATE(getOwner()));
        checkCurrentHp();
    }

Original comment by mike.wai...@web.de on 20 Apr 2011 at 8:26

GoogleCodeExporter commented 9 years ago
The line is contained in patch file.

Original comment by ZeroSign...@gmail.com on 21 Apr 2011 at 1:42

GoogleCodeExporter commented 9 years ago
No isn´t, Patch add line to guardmode. Line must be insert in restmode too.

Original comment by mike.wai...@web.de on 21 Apr 2011 at 12:40

GoogleCodeExporter commented 9 years ago
Committed Revision 271.

Original comment by ZeroSign...@gmail.com on 27 Apr 2011 at 2:17