summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-01 00:32:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-01 00:32:54 +0000
commit58d4cb0ae8affce8115d965bb03206b9bb692820 (patch)
tree084965d54ad1d7c5ed78ecbcc0bc045823ccc2e8 /src/map/skill.c
parent6e909c5fe0ac44b801febce0076cf9866082899f (diff)
downloadhercules-58d4cb0ae8affce8115d965bb03206b9bb692820.tar.gz
hercules-58d4cb0ae8affce8115d965bb03206b9bb692820.tar.bz2
hercules-58d4cb0ae8affce8115d965bb03206b9bb692820.tar.xz
hercules-58d4cb0ae8affce8115d965bb03206b9bb692820.zip
- Fixed NPC_STOP id value in skill_cast_db
- Bladestop will no longer stop when you push either of the characters around. - Fixed Enchant Poison having a near 100% chance of poisoning target on attack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8015 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index d64997c71..de7dc85ab 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1085,9 +1085,10 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
if (sc && sc->count) {
// Enchant Poison gives a chance to poison attacked enemies
- if(sc->data[SC_ENCPOISON].timer != -1)
- sc_start(bl,SC_POISON,10*sc->data[SC_ENCPOISON].val2,sc->data[SC_ENCPOISON].val1,
- skill_get_time2(AS_ENCHANTPOISON,sc->data[SC_ENCPOISON].val1));
+ if(sc->data[SC_ENCPOISON].timer != -1) //Don't use sc_start since chance comes in 1/10000 rate.
+ status_change_start(bl,SC_POISON,sc->data[SC_ENCPOISON].val2,
+ sc->data[SC_ENCPOISON].val1,0,0,0,
+ skill_get_time2(AS_ENCHANTPOISON,sc->data[SC_ENCPOISON].val1),0);
// Enchant Deadly Poison gives a chance to deadly poison attacked enemies
if(sc->data[SC_EDP].timer != -1)
sc_start4(bl,SC_DPOISON,sc->data[SC_EDP].val2,