mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
side attacks acknowledge slaying
This commit is contained in:
parent
1a841aaa4a
commit
454e1909d1
6
game.cpp
6
game.cpp
@ -4839,7 +4839,11 @@ void sideAttack(cell *mf, int dir, eMonster who, int bonus, eItem orb) {
|
||||
for(int k: {-1, 1}) {
|
||||
cell *mt = getMovR(mf, dir + k*bonus);
|
||||
eMonster m = mt->monst;
|
||||
if(canAttack(mf, who, mt, m, AF_SIDE)) {
|
||||
flagtype f = AF_SIDE;
|
||||
if(items[itOrbSlaying]) f|= AF_CRUSH;
|
||||
if(canAttack(mf, who, mt, m, f)) {
|
||||
if((f & AF_CRUSH) && !canAttack(mf, who, mt, m, AF_SIDE | AF_MUSTKILL))
|
||||
markOrb(itOrbSlaying);
|
||||
markOrb(orb);
|
||||
if(who != moPlayer) markOrb(itOrbEmpathy);
|
||||
if(attackMonster(mt, AF_NORMAL | AF_SIDE | AF_MSG, who))
|
||||
|
Loading…
Reference in New Issue
Block a user