diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-24 04:58:40 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-05-24 04:58:40 +0000 |
commit | 65105af9a3293277fbd7972460b5157df1b305ee (patch) | |
tree | dda13baac66c55c069a9639c5a6fbc6257420deb /src | |
parent | d5ed6070886bb3dc2d15c7cc69950762f7f885f1 (diff) | |
download | hercules-65105af9a3293277fbd7972460b5157df1b305ee.tar.gz hercules-65105af9a3293277fbd7972460b5157df1b305ee.tar.bz2 hercules-65105af9a3293277fbd7972460b5157df1b305ee.tar.xz hercules-65105af9a3293277fbd7972460b5157df1b305ee.zip |
Taro Card can now break shoes and garment and won't affect dead target. (bugreport:2513)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13808 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 6e387c533..fda276c5b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1358,6 +1358,12 @@ int skill_break_equip (struct block_list *bl, unsigned short where, int rate, in (where&EQP_WEAPON && sd->inventory_data[j]->type == IT_WEAPON) || (where&EQP_SHIELD && sd->inventory_data[j]->type == IT_ARMOR)); break; + case EQI_SHOES: + flag = (where&EQP_SHOES); + break; + case EQI_GARMENT: + flag = (where&EQP_GARMENT); + break; default: continue; } @@ -5255,10 +5261,11 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break; case 3: // 1000 damage, random armor destroyed { - int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM }; + int where[] = { EQP_ARMOR, EQP_SHIELD, EQP_HELM, EQP_SHOES, EQP_GARMENT }; status_fix_damage(src, bl, 1000, 0); clif_damage(src,bl,tick,0,0,1000,0,0,0); - skill_break_equip(bl, where[rand()%3], 10000, BCT_ENEMY); + if( !status_isdead(bl) ) + skill_break_equip(bl, where[rand()%5], 10000, BCT_ENEMY); } break; case 4: // atk halved |