mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-04 18:50:41 +01:00
Pull Request #73: Only add the loot once
This commit is contained in:
@@ -250,7 +250,8 @@ public final class CombatController implements VisualEffectCompletedCallback {
|
||||
if (!loot.hasItemsOrGold()) {
|
||||
world.model.currentMaps.map.removeGroundLoot(loot);
|
||||
} else if (world.model.uiSelections.isInCombat) {
|
||||
killedMonsterBags.add(loot);
|
||||
if(!killedMonsterBags.contains(loot))
|
||||
killedMonsterBags.add(loot);
|
||||
}
|
||||
|
||||
combatActionListeners.onPlayerKilledMonster(killedMonster);
|
||||
|
||||
Reference in New Issue
Block a user