mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
Curse of Weakness allows to push stunned monsters as originally designed
This commit is contained in:
parent
9af73d9543
commit
8678a2f77f
@ -1045,8 +1045,7 @@ EX void killFriendlyIvy() {
|
||||
}
|
||||
|
||||
EX bool monsterPushable(cell *c2) {
|
||||
if(markOrb(itCurseWeakness) && attackJustStuns(c2, 0, moPlayer))
|
||||
return false;
|
||||
if(markOrb(itCurseWeakness) && (c2->stuntime < 2 || attackJustStuns(c2, 0, moPlayer))) return false;
|
||||
return (c2->monst != moFatGuard && !(isMetalBeast(c2->monst) && c2->stuntime < 2) && c2->monst != moTortoise && c2->monst != moTerraWarrior && c2->monst != moVizier && c2->monst != moWorldTurtle);
|
||||
}
|
||||
|
||||
|
@ -926,7 +926,7 @@ bool pcmove::attack() {
|
||||
|
||||
mip = movei(c2, nullptr, NO_SPACE);
|
||||
|
||||
if(isStunnable(c2->monst) && c2->hitpoints > 1) {
|
||||
if(items[itCurseWeakness] || (isStunnable(c2->monst) && c2->hitpoints > 1)) {
|
||||
if(monsterPushable(c2))
|
||||
mip = determinePush(cwt, subdir, [c2] (cell *c) { return passable(c, c2, P_BLOW); });
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user