diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-24 13:59:59 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-05-24 13:59:59 +0000 |
commit | 5ac133e3b8736d62e57efc3dd42e3db6816605ad (patch) | |
tree | 0d5322821e580a676b170d1db5caebbbda221ffc /src/map/skill.c | |
parent | bf2d6424f40123d3a70bcaa6864756cc7a72c46a (diff) | |
download | hercules-5ac133e3b8736d62e57efc3dd42e3db6816605ad.tar.gz hercules-5ac133e3b8736d62e57efc3dd42e3db6816605ad.tar.bz2 hercules-5ac133e3b8736d62e57efc3dd42e3db6816605ad.tar.xz hercules-5ac133e3b8736d62e57efc3dd42e3db6816605ad.zip |
Fixed bugreport:1551 poison and edp poison now give proper exp to caster vs mobs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16142 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 9877d6255..2711b4fd4 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -790,11 +790,11 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int struct status_change_entry *sce; // Enchant Poison gives a chance to poison attacked enemies if((sce=sc->data[SC_ENCPOISON])) //Don't use sc_start since chance comes in 1/10000 rate. - status_change_start(bl,SC_POISON,sce->val2, sce->val1,0,0,0, + status_change_start(bl,SC_POISON,sce->val2, sce->val1,src->id,0,0, skill_get_time2(AS_ENCHANTPOISON,sce->val1),0); // Enchant Deadly Poison gives a chance to deadly poison attacked enemies if((sce=sc->data[SC_EDP])) - sc_start4(bl,SC_DPOISON,sce->val2, sce->val1,0,0,0, + sc_start4(bl,SC_DPOISON,sce->val2, sce->val1,src->id,0,0, skill_get_time2(ASC_EDP,sce->val1)); } } @@ -817,7 +817,7 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int skilllv = pc_checkskill(sd, TF_POISON); case TF_POISON: case AS_SPLASHER: - if(!sc_start(bl,SC_POISON,(4*skilllv+10),skilllv,skill_get_time2(skillid,skilllv)) + if(!sc_start2(bl,SC_POISON,(4*skilllv+10),skilllv,src->id,skill_get_time2(skillid,skilllv)) && sd && skillid==TF_POISON ) clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0); |