From 8e9f7a59e3a0e2e010f3595e1d35cccbb4fc46cd Mon Sep 17 00:00:00 2001 From: aleos89 Date: Tue, 19 Jun 2018 12:10:27 -0400 Subject: [PATCH] Follow up to 375f0ae * Crystallize Wind damage increase should only apply to Magic-type skills. Thanks to @flamefury! --- src/map/battle.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/map/battle.cpp b/src/map/battle.cpp index e40e5ea807..f36a76956d 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -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; + ratio += 50; #else - damage += (int64)(damage * 50 / 100); + damage += (int64)(damage * 50 / 100); #endif + } break; case ELE_WATER: if (tsc->data[SC_FIRE_INSIGNIA])