… | |
… | |
542 | } |
542 | } |
543 | |
543 | |
544 | if (symptom->stats.dam > 0) |
544 | if (symptom->stats.dam > 0) |
545 | hit_player (victim, symptom->stats.dam, symptom, symptom->attacktype, 1); |
545 | hit_player (victim, symptom->stats.dam, symptom, symptom->attacktype, 1); |
546 | else |
546 | else |
547 | hit_player (victim, max (1., -victim->stats.maxhp * symptom->stats.dam / 100.0), symptom, symptom->attacktype, 1); |
547 | hit_player (victim, max (1, -victim->stats.maxhp * symptom->stats.dam / 100), symptom, symptom->attacktype, 1); |
548 | |
548 | |
549 | if (symptom->stats.maxsp > 0) |
549 | if (symptom->stats.maxsp > 0) |
550 | sp_reduce = symptom->stats.maxsp; |
550 | sp_reduce = symptom->stats.maxsp; |
551 | else |
551 | else |
552 | sp_reduce = max (1, victim->stats.maxsp * symptom->stats.maxsp / 100.0); |
552 | sp_reduce = max (1, victim->stats.maxsp * symptom->stats.maxsp / 100); |
553 | |
553 | |
554 | victim->stats.sp = max (0, victim->stats.sp - sp_reduce); |
554 | victim->stats.sp = max (0, victim->stats.sp - sp_reduce); |
555 | |
555 | |
556 | /* create the symptom "other arch" object and drop it here |
556 | /* create the symptom "other arch" object and drop it here |
557 | * under every part of the monster |
557 | * under every part of the monster |