Skip to content

Commit

Permalink
Follow up 89a33a7
Browse files Browse the repository at this point in the history
* Corrected documentaion of `bStateNoRecoverRace`
* Added `bStateNoRecoverRace` to const.txt

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
  • Loading branch information
cydh committed Dec 8, 2015
1 parent f041567 commit 241e10b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions db/const.txt
Expand Up @@ -634,6 +634,7 @@ bSPVanishRaceRate 2075
bAbsorbDmgMaxHP 2076
bSubSkill 2077
bSubDefEle 2078
bStateNoRecoverRace 2079

EQI_HEAD_TOP 1
EQI_ARMOR 2
Expand Down
2 changes: 1 addition & 1 deletion doc/item_bonus.txt
Expand Up @@ -369,7 +369,7 @@ bonus2 bSPVanishRate,x,n; Add a x/10% chance of decreasing enemy's SP amount by
bonus3 bHPVanishRaceRate,r,x,n; Add a x/100% chance of decreasing enemy's HP amount by n% when attacking, depends on enemy race r
bonus3 bSPVanishRaceRate,r,x,n; Add a x/100% chance of decreasing enemy's SP amount by n% when attacking, depends on enemy race r

bonus3 bStateNoRecoverRace,n,x,r; Set a no recovery state of an enemy of race n at x% for r milliseconds with normal attack.
bonus3 bStateNoRecoverRace,r,x,t; Set a no recovery state of an enemy of race r at x% for t milliseconds with normal attack.

HP/SP gain
------------
Expand Down
6 changes: 6 additions & 0 deletions src/map/pc.c
Expand Up @@ -3784,6 +3784,12 @@ void pc_bonus3(struct map_session_data *sd,int type,int type2,int type3,int val)
PC_BONUS_CHK_RACE(type2, SP_STATE_NORECOVER_RACE);
if (sd->state.lr_flag == 2)
break;
//! CONFIRM: Is it not stackable? Does not check max or min value?
//if (type3 > sd->norecover_state_race[type2].rate) {
// sd->norecover_state_race[type2].rate = type3;
// sd->norecover_state_race[type2].tick = val;
// break;
//}
sd->norecover_state_race[type2].rate = type3;
sd->norecover_state_race[type2].tick = val;
break;
Expand Down

0 comments on commit 241e10b

Please sign in to comment.