fix necro revive and proper locate items from cube

This commit is contained in:
Héctor Giménez
2024-11-07 21:56:02 +09:00
parent c699e0c53a
commit b2c710dc5c
2 changed files with 6 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ func (m Monster) IsMerc() bool {
func (m Monster) IsPet() bool {
// Necro revive
if m.States.HasState(state.Revive) && m.Type == MonsterTypeMinion {
if m.States.HasState(state.Revive) {
return true
}

View File

@@ -121,6 +121,11 @@ func (gd *GameReader) Inventory(rawPlayerUnits RawPlayerUnits, hover data.HoverD
location = item.LocationInventory
break
}
if invPage == 3 {
location = item.LocationCube
invPage = 0
break
}
location = item.LocationStash
invPage = 0
break