mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 03:50:34 +00:00
Merge pull request #245 from jruderman/weak_hp
Weak attacks no longer affect enemy HP
This commit is contained in:
commit
196510d788
@ -361,7 +361,7 @@ EX void stunMonster(cell *c2, eMonster killer, flagtype flags) {
|
|||||||
((flags & AF_WEAK) && !attackJustStuns(c2, flags &~ AF_WEAK, killer)) ? min(5+c2->stuntime, 15) :
|
((flags & AF_WEAK) && !attackJustStuns(c2, flags &~ AF_WEAK, killer)) ? min(5+c2->stuntime, 15) :
|
||||||
3);
|
3);
|
||||||
if(killer == moArrowTrap) newtime = min(newtime + 3, 7);
|
if(killer == moArrowTrap) newtime = min(newtime + 3, 7);
|
||||||
if(!isMetalBeast(c2->monst) && !among(c2->monst, moSkeleton, moReptile, moSalamander, moTortoise, moWorldTurtle, moBrownBug)) {
|
if(!(flags & AF_WEAK) && !isMetalBeast(c2->monst) && !among(c2->monst, moSkeleton, moReptile, moSalamander, moTortoise, moWorldTurtle, moBrownBug)) {
|
||||||
c2->hitpoints--;
|
c2->hitpoints--;
|
||||||
if(c2->monst == moPrincess)
|
if(c2->monst == moPrincess)
|
||||||
playSound(c2, princessgender() ? "hit-princess" : "hit-prince");
|
playSound(c2, princessgender() ? "hit-princess" : "hit-prince");
|
||||||
|
Loading…
Reference in New Issue
Block a user