viewing paste Unknown #6574 | Plain text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Index: battle.c
===================================================================
--- battle.c    (revision 17412)
+++ battle.c    (working copy)
@@ -2416,13 +2416,21 @@
        int left_element = battle_get_weapon_element(wd, src, target, skill_id, skill_lv, EQI_HAND_L, false);
 
        wd.statusAtk += battle_calc_status_attack(sstatus, EQI_HAND_R);
-       wd.statusAtk2 += battle_calc_status_attack(sstatus, EQI_HAND_L);
-#ifdef RENEWAL
+       wd.statusAtk2 += battle_calc_status_attack(sstatus, EQI_HAND_L);
+
+       if (!skill_id) { // status atk is considered neutral on normal attacks [helvetica]
+               wd.statusAtk = battle_attr_fix(src, target, wd.statusAtk, ELE_NEUTRAL, tstatus->def_ele, tstatus->ele_lv);
+               wd.statusAtk2 = battle_attr_fix(src, target, wd.statusAtk, ELE_NEUTRAL, tstatus->def_ele, tstatus->ele_lv);
+       }
+       else {
+               wd.statusAtk = battle_attr_fix(src, target, wd.statusAtk, right_element, tstatus->def_ele, tstatus->ele_lv);
+                wd.statusAtk2 = battle_attr_fix(src, target, wd.statusAtk, left_element, tstatus->def_ele, tstatus->ele_lv);
+       }
+
        if (sd) { // Mild Wind applies element to status ATK as well as weapon ATK [helvetica]
                if(sd->sc.data[SC_SEVENWIND])
                        wd.statusAtk = battle_attr_fix(src, target, wd.statusAtk, right_element, tstatus->def_ele, tstatus->ele_lv);
        }
-#endif
 
        wd.weaponAtk += battle_calc_base_weapon_attack(src, tstatus, &sstatus->rhw, sd);
        wd.weaponAtk = battle_attr_fix(src, target, wd.weaponAtk, right_element, tstatus->def_ele, tstatus->ele_lv);
 
Viewed 277 times, submitted by unknown.