mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 11:12:49 +00:00
fixed reverse condition: allies' plague spreading worked only if you had no empathy
This commit is contained in:
parent
6e942e98f5
commit
1c36c876ba
@ -1394,7 +1394,7 @@ EX void swordAttackStatic() {
|
|||||||
EX int plague_kills;
|
EX int plague_kills;
|
||||||
|
|
||||||
EX void spread_plague(cell *mf, cell *mt, int dir, eMonster who) {
|
EX void spread_plague(cell *mf, cell *mt, int dir, eMonster who) {
|
||||||
if(!(who == moPlayer ? markOrb(itOrbPlague) : !markEmpathy(itOrbPlague))) return;
|
if(!(who == moPlayer ? markOrb(itOrbPlague) : markEmpathy(itOrbPlague))) return;
|
||||||
forCellEx(mx, mt) if(celldistance(mx, mf) > celldistance(mx, mf->modmove(dir)) && celldistance(mx, mf) <= 4) {
|
forCellEx(mx, mt) if(celldistance(mx, mf) > celldistance(mx, mf->modmove(dir)) && celldistance(mx, mf) <= 4) {
|
||||||
sideAttackAt(mf, dir, mx, who, itOrbPlague, mt);
|
sideAttackAt(mf, dir, mx, who, itOrbPlague, mt);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user