|
@@ -1030,6 +1030,8 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
|
|
s_ele_ = sstatus->lhw.ele;
|
|
s_ele_ = sstatus->lhw.ele;
|
|
if (flag.arrow && sd && sd->arrow_ele)
|
|
if (flag.arrow && sd && sd->arrow_ele)
|
|
s_ele = sd->arrow_ele;
|
|
s_ele = sd->arrow_ele;
|
|
|
|
+ if (battle_config.attack_attr_none&src->type)
|
|
|
|
+ nk|=NK_NO_ELEFIX; //Weapon's element is "not elemental"
|
|
} else if (s_ele == -2) { //Use enchantment's element
|
|
} else if (s_ele == -2) { //Use enchantment's element
|
|
s_ele = s_ele_ = status_get_attack_sc_element(src,sc);
|
|
s_ele = s_ele_ = status_get_attack_sc_element(src,sc);
|
|
}
|
|
}
|
|
@@ -1886,8 +1888,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
|
|
if(skill_num==TF_POISON)
|
|
if(skill_num==TF_POISON)
|
|
ATK_ADD(15*skill_lv);
|
|
ATK_ADD(15*skill_lv);
|
|
|
|
|
|
- if(!(nk&NK_NO_ELEFIX || (s_ele == ELE_NEUTRAL &&
|
|
|
|
- battle_config.attack_attr_none&src->type)))
|
|
|
|
|
|
+ if(!(nk&NK_NO_ELEFIX))
|
|
{ //Elemental attribute fix
|
|
{ //Elemental attribute fix
|
|
if (wd.damage > 0)
|
|
if (wd.damage > 0)
|
|
{
|
|
{
|