We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77f4cf commit 53e5a0bCopy full SHA for 53e5a0b
1 file changed
src/battle-nads/Instances.sol
@@ -47,17 +47,8 @@ abstract contract Instances is Combat {
47
// Boss has a reserved index.
48
if (isBossEncounter) {
49
uint256 bossBit = 1 << RESERVED_BOSS_INDEX;
50
- uint256 combinedBossCheck = (monsterBitmap | playerBitmap) & bossBit;
51
-
52
- if (combinedBossCheck != 0) {
53
- // Boss index is occupied by either a monster or player
54
- // Check if it's a monster that can be loaded
55
- if (monsterBitmap & bossBit != 0) {
56
- return (uint8(RESERVED_BOSS_INDEX), false);
57
- } else {
58
- // Player is occupying boss slot, can't spawn boss
59
- return (0, false);
60
- }
+ if (monsterBitmap & bossBit != 0) {
+ return (uint8(RESERVED_BOSS_INDEX), false);
61
} else {
62
return (uint8(RESERVED_BOSS_INDEX), true);
63
}
0 commit comments