fix the error when a monster's oid in map equals charId, (the item will drop from the error monster) (#400)

(cherry picked from commit 5c1017c73d83b7bc646c36bdde2d7904af78a111)
This commit is contained in:
Li Jixue
2019-02-10 20:30:50 +08:00
committed by Ronan Lana
parent 1b32afb524
commit 4beea39615

View File

@@ -1828,7 +1828,8 @@ public class MaplePacketCreator {
mplew.writeInt(!drop.isFFADrop() ? (recvrInParty ? drop.getPartyOwnerId() : drop.getOwnerId()) : 0); // owner charid/partyid :)
mplew.write(drop.getDropType()); // 0 = timeout for non-owner, 1 = timeout for non-owner's party, 2 = FFA, 3 = explosive/FFA
mplew.writePos(dropto);
mplew.writeInt(!drop.isFFADrop() ? drop.getOwnerId() : 0); // owner charid
// its not charId, but dropper's oid, this error will occur only if a monster's oid in map equals charId, (the item will drop from the error monster)
mplew.writeInt(drop.getDropper().getObjectId());
if (mod != 2) {
mplew.writePos(dropfrom);