summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcsnv <ctt@csnv.es>2014-09-05 05:27:59 +0200
committercsnv <ctt@csnv.es>2014-09-05 05:27:59 +0200
commit50bc349e13d04bc6028d0dc75d2e478fc3cc7c8b (patch)
treedd0662df97f4ca4cc9686533aa65f9f64560c162 /src/map/skill.c
parentbb93fb127f79f8c4ed443c0a50d5de24a6ca5f1c (diff)
downloadhercules-50bc349e13d04bc6028d0dc75d2e478fc3cc7c8b.tar.gz
hercules-50bc349e13d04bc6028d0dc75d2e478fc3cc7c8b.tar.bz2
hercules-50bc349e13d04bc6028d0dc75d2e478fc3cc7c8b.tar.xz
hercules-50bc349e13d04bc6028d0dc75d2e478fc3cc7c8b.zip
Corrected SC_WARMER. Other cleanups
-Fixes bug 8044: http://hercules.ws/board/tracker/issue-8044-sorcerer-warmer/ TODO: Fix skill_unit_onout to work for skill_unit_timer_sub_onplace too. - Cleaned some skill_unit_onout cases never reached. - Removed icon for SC_WARMER.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 94aa32599..d0325fc4e 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -12116,7 +12116,7 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6
break;
case UNT_WARMER:
- if( bl->type == BL_PC && !battle->check_undead(tstatus->race, tstatus->def_ele) && tstatus->race != RC_DEMON ) {
+ { // It has effect on everything, including monsters, undead property and demon
int hp = 0;
if( ssc && ssc->data[SC_HEATER_OPTION] )
hp = tstatus->max_hp * 3 * sg->skill_lv / 100;
@@ -12128,10 +12128,9 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6
if( tsc && tsc->data[SC_AKAITSUKI] && hp )
hp = ~hp + 1;
status->heal(bl, hp, 0, 0);
- sc_start(ss, bl, SC_WARMER, 100, sg->skill_lv, skill->get_time2(sg->skill_id,sg->skill_lv));
+ sc_start(ss, bl, type, 100, sg->skill_lv, sg->interval + 100);
}
break;
-
case UNT_FIRE_INSIGNIA:
case UNT_WATER_INSIGNIA:
case UNT_WIND_INSIGNIA:
@@ -12239,10 +12238,8 @@ int skill_unit_onout(struct skill_unit *src, struct block_list *bl, int64 tick)
switch(sg->unit_id){
case UNT_SAFETYWALL:
case UNT_PNEUMA:
- case UNT_EPICLESIS://Arch Bishop
case UNT_NEUTRALBARRIER:
case UNT_STEALTHFIELD:
- case UNT_WARMER:
if (sce)
status_change_end(bl, type, INVALID_TIMER);
break;