mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-28 22:37:03 +00:00
changes: when monster stabbing
This commit is contained in:
parent
7c9fa25743
commit
97d47c06fe
@ -1192,6 +1192,7 @@ EX void stabbingAttack(cell *mf, cell *mt, eMonster who, int bonuskill IS(0)) {
|
|||||||
explodeBarrel(c);
|
explodeBarrel(c);
|
||||||
|
|
||||||
if(stabthere && canAttack(mt,who,c,c->monst,AF_STAB)) {
|
if(stabthere && canAttack(mt,who,c,c->monst,AF_STAB)) {
|
||||||
|
changes.ccell(c);
|
||||||
if(c->monst != moHedge) {
|
if(c->monst != moHedge) {
|
||||||
markOrb(itOrbThorns); if(who != moPlayer) markOrb(itOrbEmpathy);
|
markOrb(itOrbThorns); if(who != moPlayer) markOrb(itOrbEmpathy);
|
||||||
}
|
}
|
||||||
@ -1205,6 +1206,7 @@ EX void stabbingAttack(cell *mf, cell *mt, eMonster who, int bonuskill IS(0)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(away && c != mt && canAttack(mf,who,c,c->monst,AF_BACK)) {
|
if(away && c != mt && canAttack(mf,who,c,c->monst,AF_BACK)) {
|
||||||
|
changes.ccell(c);
|
||||||
if(c->monst == moVizier && c->hitpoints > 1) {
|
if(c->monst == moVizier && c->hitpoints > 1) {
|
||||||
fightmessage(c->monst, who, true, AF_BACK);
|
fightmessage(c->monst, who, true, AF_BACK);
|
||||||
c->hitpoints--;
|
c->hitpoints--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user