Originally posted by [b]Kazukin[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4993
When using BF_WEAPON skills on monsters with MD_PLANT mode set,
battle_calc_weapon_attack() returns before applying gvg/bg damage modifiers to the actual damage, so BF_WEAPON skills do damage equal to the skill number of blows to these monsters.
Issue is that if monster is a crystal (or emperium if it had MD_PLANT mode set), this damage should have been reduced to 0, since they are immune to skills.
This issue can be reproduced by using Sonic Blow or Flying Kick (or any other BF_WEAPON skill) on ID#1914 and ID#1915 monsters on a battleground flagged map.
QUOTE
if( flag.infdef )
{ //Plants receive 1 damage when hit
if( flag.hit || wd.damage > 0 )
wd.damage = wd.div_; // In some cases, right hand no need to have a weapon to increase damage
if( flag.lh && (flag.hit || wd.damage2 > 0) )
wd.damage2 = wd.div_;
if( !(battle_config.skill_min_damage&1) )
//Do not return if you are supposed to deal greater damage to plants than 1. [Skotlex]
return wd;
}
This post has been edited by Kazukin: Jul 7 2011, 06:38 PM