summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/pc.c8
-rw-r--r--src/map/skill.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d780a2b3f..07c270f7c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -290,7 +290,7 @@ int clif_send_sub(struct block_list *bl, va_list ap)
len = va_arg(ap,int);
nullpo_retr(0, src_bl = va_arg(ap,struct block_list*));
type = va_arg(ap,int);
- flush = va_arg(ap,char);
+ flush = (char)va_arg(ap,int);
switch(type) {
case AREA_WOS:
diff --git a/src/map/pc.c b/src/map/pc.c
index 196687c24..c5128bd79 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5407,10 +5407,11 @@ int pc_itemheal(struct map_session_data *sd,int itemid, int hp,int sp)
if(hp) {
bonus = 100 + (sd->battle_status.vit<<1)
- + pc_checkskill(sd,SM_RECOVERY)*10
+ + pc_checkskill(sd,SM_RECOVERY)*10
+ pc_checkskill(sd,AM_LEARNINGPOTION)*5;
// A potion produced by an Alchemist in the Fame Top 10 gets +50% effect [DracoRPG]
- bonus += (potion_flag==2)?50:(potion_flag==3?100:0);
+ if (potion_flag > 1)
+ bonus += bonus*(potion_flag-1)*50/100;
//Item Group bonuses
bonus += bonus*itemdb_group_bonus(sd, itemid)/100;
//Individual item bonuses.
@@ -5428,7 +5429,8 @@ int pc_itemheal(struct map_session_data *sd,int itemid, int hp,int sp)
bonus = 100 + (sd->battle_status.int_<<1)
+ pc_checkskill(sd,MG_SRECOVERY)*10
+ pc_checkskill(sd,AM_LEARNINGPOTION)*5;
- bonus += (potion_flag==2)?50:(potion_flag==3?100:0);
+ if (potion_flag > 1)
+ bonus += bonus*(potion_flag-1)*50/100;
if(bonus != 100)
sp = sp * bonus / 100;
}
diff --git a/src/map/skill.c b/src/map/skill.c
index f987e69d0..378e46796 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7883,6 +7883,8 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t
sd->skillitem != skill)
{ //GMs don't override the skillItem check, otherwise they can use items without them being consumed! [Skotlex]
sd->skillitem = sd->skillitemlv = 0;
+ //Need to do arrow state check.
+ sd->state.arrow_atk = skill_get_ammotype(skill)?1:0;
return 1;
}