summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-07 02:18:11 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-07 02:18:11 +0000
commita72169bec3481839b89329c8e1738a35a83546d5 (patch)
treedfe2ce02873afe4f757978a2d79b8fb8a7998a2f /src/map/battle.c
parent764ef67fe496e36859a28c615a463e0ce10ad82a (diff)
downloadhercules-a72169bec3481839b89329c8e1738a35a83546d5.tar.gz
hercules-a72169bec3481839b89329c8e1738a35a83546d5.tar.bz2
hercules-a72169bec3481839b89329c8e1738a35a83546d5.tar.xz
hercules-a72169bec3481839b89329c8e1738a35a83546d5.zip
NPC earthquake now divides the atk2 bonus between players. (bugreport:1253)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12514 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index a1b52c5e5..16651ef0c 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2348,7 +2348,8 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
if (skill_num == NPC_EARTHQUAKE)
{ //Adds atk2 to the damage, should be influenced by number of hits and skill-ratio, but not mdef reductions. [Skotlex]
- ad.damage+= sstatus->rhw.atk2*skillratio/100;
+ //Also divide the extra bonuses from atk2 based on the number in range [Kevin]
+ ad.damage+= (sstatus->rhw.atk2*skillratio/100)/mflag;
}
if(ad.damage<1)