mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
Allies are now immune to friendly Beauty.
This commit is contained in:
parent
bd89c1b91a
commit
ea16b82c30
4
game.cpp
4
game.cpp
@ -3956,10 +3956,10 @@ EX void moveMonster(const movei& mi) {
|
||||
if(m == moFireElemental) { makeflame(cf, 20, false); if(cf->wparam < 20) cf->wparam = 20; }
|
||||
|
||||
bool adj = false;
|
||||
if(ct->cpdist == 1 && (items[itOrb37] || !nonAdjacent(cf,ct)) && markOrb(itOrbBeauty))
|
||||
if(ct->cpdist == 1 && (items[itOrb37] || !nonAdjacent(cf,ct)) && markOrb(itOrbBeauty) && !isFriendly(ct))
|
||||
adj = true;
|
||||
|
||||
if(!adj && items[itOrbEmpathy] && items[itOrbBeauty]) {
|
||||
if(!adj && items[itOrbEmpathy] && items[itOrbBeauty] && !isFriendly(ct)) {
|
||||
for(int i=0; i<ct->type; i++) if(ct->move(i) && isFriendly(ct->move(i)))
|
||||
adj = true, markOrb(itOrbEmpathy), markOrb(itOrbBeauty);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user