Triple Attack vs. Plant Mode (#8403)
- Triple Attack will now deal 3 damage to monsters with plant mode (infinite defense)
This commit is contained in:
parent
4c1b1c1a5c
commit
e8f1c7f9e7
@ -6795,6 +6795,15 @@ static void battle_calc_attack_plant(struct Damage* wd, struct block_list *src,s
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Triple Attack has a special property that it does not split damage on plant mode
|
||||||
|
// In pre-renewal, it requires the monster to have exactly 100 def
|
||||||
|
if (skill_id == MO_TRIPLEATTACK && wd->div_ < 0
|
||||||
|
#ifndef RENEWAL
|
||||||
|
&& tstatus->def == 100
|
||||||
|
#endif
|
||||||
|
)
|
||||||
|
wd->div_ *= -1;
|
||||||
|
|
||||||
//For plants we don't continue with the weapon attack code, so we have to apply DAMAGE_DIV_FIX here
|
//For plants we don't continue with the weapon attack code, so we have to apply DAMAGE_DIV_FIX here
|
||||||
battle_apply_div_fix(wd, skill_id);
|
battle_apply_div_fix(wd, skill_id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user