Fix loot rewards

This commit is contained in:
Anthony Calosa
2022-11-25 05:14:42 +08:00
parent 58ea27bde5
commit c22eaf4030

View File

@@ -135,7 +135,8 @@ public class RewardScene extends UIScene {
continue;
}
RewardActor reward = (RewardActor) actor;
AdventurePlayer.current().addReward(reward.getReward());
if (type == Type.Loot)
AdventurePlayer.current().addReward(reward.getReward());
reward.clearHoldToolTip();
try {
stage.getActors().removeValue(reward, true);