diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-09-14 23:17:52 +0200 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-09-14 23:17:52 +0200 |
commit | 2a8a0ff5cac74462b468f8139cc615b295479a6b (patch) | |
tree | 65deac2455ac685a01d1de13bf91f0d840a00c6e /src/map/skill.c | |
parent | 712027e0a839c35b8d850d6769593e506698aff0 (diff) | |
parent | 50bc349e13d04bc6028d0dc75d2e478fc3cc7c8b (diff) | |
download | hercules-2a8a0ff5cac74462b468f8139cc615b295479a6b.tar.gz hercules-2a8a0ff5cac74462b468f8139cc615b295479a6b.tar.bz2 hercules-2a8a0ff5cac74462b468f8139cc615b295479a6b.tar.xz hercules-2a8a0ff5cac74462b468f8139cc615b295479a6b.zip |
Merge pull request #338 from csnv/unitcleanup
Corrected SC_WARMER. Other cleanups
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 269663d91..7d5f0d021 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -12157,7 +12157,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; @@ -12169,10 +12169,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: @@ -12285,10 +12284,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; |