mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
Orb of Water + Orb of Empathy no longer works on enemies too
This commit is contained in:
parent
1286c66e85
commit
a8c55be1d1
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user