summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 10:02:11 +0000
committerKomurka <Komurka@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-01-30 10:02:11 +0000
commit3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5 (patch)
tree85f96e682b4ab8a164064ba040ee5b161fc00a90
parent7dce873e34f8aa9b0cdd584db07651ec26d2e641 (diff)
downloadhercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.tar.gz
hercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.tar.bz2
hercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.tar.xz
hercules-3dbc82cb89e5fce90d2fbacdebfb8502a4469fb5.zip
One more small fix on 'bSPVanishRate' (tsd->status.hp * sd->sp_vanish_per/100 -> tsd->status.sp * sd->sp_vanish_per/100)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5111 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--doc/item_bonus.txt1
-rw-r--r--src/map/battle.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index da2501b4f..89f6eb777 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EV
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/01/30
+ * One more small fix on 'bSPVanishRate' (hp -> sp) [Komurka]
* Added bSPVanishRate to const.txt - Dark Priest Card should work now ^^
* Implemented bonus2 bSPVanishRate for Dark Priest Card [Komurka]
- it isn't finished - I get '[Warning]: pc_bonus2: unknown type 0 50 10!' ><
diff --git a/doc/item_bonus.txt b/doc/item_bonus.txt
index 6ccd5c9d2..9b244f66c 100644
--- a/doc/item_bonus.txt
+++ b/doc/item_bonus.txt
@@ -115,6 +115,7 @@ bonus2 bAddDefClass,n,x; In monster of class n the damage reduction of x% (only
bonus2 bAddMDefClass,n,x; In monster of class n in case of the magical damage reduction and prayer of x% in n occupation the magical damage reduction of x%
bonus2 bHPDrainRate,n,x; it obtained to the enemy -- ? ME ? JI -- n % probability -- x % -- HP -- absorption (+ n and x are carried out)
bonus2 bSPDrainRate,n,x; it obtained to the enemy -- ? ME ? JI -- n % probability -- x % -- SP -- absorption (+ n and x are carried out)
+bonus2 bSPVanishRate,n,x; Add the (n/10)% chance of decreasing enemy's SP (player) amount by x% when attacking
bonus2 bAddMonsterDropItem,n,x; When killing any monsters with physical attack, the probability which drops item n +x% (the item which the monster drops unrelated ones)
if 'x' is negative value, then it's a part of formula
chance = -x*(killed_mob_level/10)+1
diff --git a/src/map/battle.c b/src/map/battle.c
index 1e1c16c7f..e46fdf8ca 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3136,7 +3136,7 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target,
if (target && target->type == BL_PC && rand()%1000 < sd->sp_vanish_rate)
{
- sp = tsd->status.hp * sd->sp_vanish_per/100;
+ sp = tsd->status.sp * sd->sp_vanish_per/100;
if (sp > 0)
pc_heal(tsd, 0, -sp);