diff options
author | Michieru <Michieru@users.noreply.github.com> | 2015-05-26 09:27:51 +0200 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2015-05-26 09:27:51 +0200 |
commit | 4cca156a2bffbe9b41d228da33393945de9dea4c (patch) | |
tree | d727597520f1e4ab6084dcd4c45478a04cac6409 /src/map/skill.c | |
parent | cd8e68ba9e18a6be416ecc4197b119eb9425fc23 (diff) | |
download | hercules-4cca156a2bffbe9b41d228da33393945de9dea4c.tar.gz hercules-4cca156a2bffbe9b41d228da33393945de9dea4c.tar.bz2 hercules-4cca156a2bffbe9b41d228da33393945de9dea4c.tar.xz hercules-4cca156a2bffbe9b41d228da33393945de9dea4c.zip |
Fix Vacuum Extrem resistance
In renewal Safetywall Hits Blocked depending also on Skill Level
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index f44497d82..55fcc6d03 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -11078,6 +11078,7 @@ struct skill_unit_group* skill_unitsetting(struct block_list *src, uint16 skill_ * According to data provided in RE, SW life is equal to 3 times caster's health **/ val2 = status_get_max_hp(src) * 3; + val3 = skill_lv+1; #else val2 = skill_lv+1; #endif @@ -11789,7 +11790,7 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6 struct skill_unit_group *sg; struct block_list *ss; TBL_PC* tsd; - struct status_data *tstatus; + struct status_data *tstatus, *bst; struct status_change *tsc, *ssc; struct skill_unit_group_tickset *ts; enum sc_type type; @@ -11813,6 +11814,7 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6 return 0; tstatus = status->get_status_data(bl); + bst = status->get_base_status(bl); type = status->skill2sc(sg->skill_id); skill_id = sg->skill_id; @@ -12463,7 +12465,7 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6 if (tsc && (tsc->data[SC_HALLUCINATIONWALK] || tsc->data[SC_VACUUM_EXTREME])) { return 0; } else { - sg->limit -= 100 * tstatus->str/20; + sg->limit -= 1000 * bst->str/20; sc_start(ss, bl, SC_VACUUM_EXTREME, 100, sg->skill_lv, sg->limit); if ( !map_flag_gvg(bl->m) && !map->list[bl->m].flag.battleground && !is_boss(bl) ) { |