Follow up to 375f0ae

* Crystallize Wind damage increase should only apply to Magic-type skills.
Thanks to @flamefury!
This commit is contained in:
aleos89 2018-06-19 12:10:27 -04:00
parent 375f0ae465
commit 8e9f7a59e3

View File

@ -535,12 +535,16 @@ int64 battle_attr_fix(struct block_list *src, struct block_list *target, int64 d
#else
damage += (int64)(damage * 50 / 100);
#endif
if (tsc->data[SC_CRYSTALIZE])
if (tsc->data[SC_CRYSTALIZE]) {
uint16 skill_id = battle_getcurrentskill(src);
if (skill_get_type(skill_id)&BF_MAGIC)
#ifdef RENEWAL
ratio += 50;
#else
damage += (int64)(damage * 50 / 100);
#endif
}
break;
case ELE_WATER:
if (tsc->data[SC_FIRE_INSIGNIA])