1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-29 16:57:56 +00:00

Merge pull request #177 from jruderman/phaser_flags

Yellow Frogs no longer phase into the player's sword
This commit is contained in:
Zeno Rogue
2021-07-04 09:38:04 +02:00
committed by GitHub

View File

@@ -1189,7 +1189,7 @@ EX int check_phase(cell *cf, cell *ct, flagtype flags, cell*& jumpthru) {
forCellCM(c2, cf) {
if(isNeighbor(c2, ct) && !nonAdjacent(cf, c2) && !nonAdjacent(c2, ct)) {
jumpthru = c2;
if(passable(ct, cf, P_ISPLAYER | P_PHASE)) {
if(passable(ct, cf, flags | P_PHASE)) {
partial = 2;
if(c2->monst || (isWall(c2) && c2->wall != waShrub)) {
return 3;