Skills that have multiple hits should do 1 damage per hit to plants.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13938 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Inkfish 2009-07-07 10:54:21 +00:00
parent 98159d09a3
commit 2d8b6a13f4
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
09/07/07
* Skills with multiple hits should do 1 damage per hit to plants. [Inkfish]
09/07/04
* TK_POWER shouldn't count the player him/herself for the skill. [Inkfish]
* Fixed a wrong check of Intimidate on hp. (bugreport:3305)[Inkfish]

View File

@ -2088,9 +2088,9 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
if( flag.infdef )
{ //Plants receive 1 damage when hit
if( flag.hit || wd.damage > 0 )
wd.damage = 1; // In some cases, right hand no need to have a weapon to increase damage
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 = 1;
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;