mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
bugfix: allies spread Plague even without Empathy
This commit is contained in:
parent
a8b53352d8
commit
be85de1ba0
@ -1296,7 +1296,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(!items[itOrbPlague]) return;
|
if(!(who == moPlayer ? markOrb(itOrbPlague) : !markEmpathy(itOrbPlague))) return;
|
||||||
int kk = tkills();
|
int kk = tkills();
|
||||||
forCellEx(mx, mt) if(celldistance(mx, mf) > celldistance(mx, mf->move(dir)) && celldistance(mx, mf) <= 4) {
|
forCellEx(mx, mt) if(celldistance(mx, mf) > celldistance(mx, mf->move(dir)) && celldistance(mx, mf) <= 4) {
|
||||||
sideAttackAt(mf, dir, mx, who, itOrbPlague, mt);
|
sideAttackAt(mf, dir, mx, who, itOrbPlague, mt);
|
||||||
|
Loading…
Reference in New Issue
Block a user