mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-12 03:33:00 +00:00
Orb of Water + Orb of Empathy no longer works on enemies too
This commit is contained in:
2
game.cpp
2
game.cpp
@@ -746,7 +746,7 @@ void moveBoat(cell *to, cell *from, int direction_hint) {
|
|||||||
|
|
||||||
void moveBoatIfUsingOne(cell *to, cell *from, int direction_hint) {
|
void moveBoatIfUsingOne(cell *to, cell *from, int direction_hint) {
|
||||||
if(from->wall == waBoat && isWatery(to)) moveBoat(to, from, direction_hint);
|
if(from->wall == waBoat && isWatery(to)) moveBoat(to, from, direction_hint);
|
||||||
else if(from->wall == waBoat && boatGoesThrough(to) && markEmpathy(itOrbWater)) {
|
else if(from->wall == waBoat && boatGoesThrough(to) && isFriendly(to) && markEmpathy(itOrbWater)) {
|
||||||
placeWater(to, from);
|
placeWater(to, from);
|
||||||
moveBoat(to, from, direction_hint);
|
moveBoat(to, from, direction_hint);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user