viewing paste Unknown #6575 | Diff

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
Index: status.c
===================================================================
--- status.c    (revision 17412)
+++ status.c    (working copy)
@@ -4703,10 +4703,6 @@
                watk += watk * sc->data[SC_TIDAL_WEAPON]->val2 / 100;
        if(sc->data[SC_ANGRIFFS_MODUS])
                watk += watk * sc->data[SC_ANGRIFFS_MODUS]->val2/100;
-#ifdef RENEWAL_EDP
-       if( sc->data[SC_EDP] )
-               watk = watk * (100 + sc->data[SC_EDP]->val1 * 80) / 100;
-#endif
 
        return (unsigned short)cap_value(watk,0,USHRT_MAX);
 }
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 280 times, submitted by unknown.