summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 14:57:49 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-10 14:57:49 +0000
commitce55e06f289c7c124be78b9bf7e4069d940c34f4 (patch)
tree49925965cf1a9ed2e643a957586724461ab771b6 /src/map/skill.c
parent513bd73defb9054947423e3deac5b18dd4629716 (diff)
downloadhercules-ce55e06f289c7c124be78b9bf7e4069d940c34f4.tar.gz
hercules-ce55e06f289c7c124be78b9bf7e4069d940c34f4.tar.bz2
hercules-ce55e06f289c7c124be78b9bf7e4069d940c34f4.tar.xz
hercules-ce55e06f289c7c124be78b9bf7e4069d940c34f4.zip
- Made the NPC_BREAK* skills no damage skills. Removed their code from the skill cast end damage id function.
- Also raised their max level to 10. Made their breaking chance 10%*lv git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5250 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index f93b281f5..3177fa238 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2578,10 +2578,6 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s
case NPC_DARKNESSATTACK:
case NPC_TELEKINESISATTACK:
case NPC_UNDEADATTACK:
- case NPC_BREAKARMOR:
- case NPC_BREAKWEAPON:
- case NPC_BREAKHELM:
- case NPC_BREAKSHIELD:
case LK_AURABLADE: /* オ?ラブレ?ド */
case LK_SPIRALPIERCE: /* スパイラルピア?ス */
case LK_HEADCRUSH: /* ヘッドクラッシュ */
@@ -5091,25 +5087,25 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
// Equipment breaking monster skills [Celest]
case NPC_BREAKWEAPON:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
- if(dstsd && battle_config.equip_skill_break_rate)
+ if(dstsd && rand()%10000 < 10*skilllv*battle_config.equip_skill_break_rate)
pc_breakweapon(dstsd);
break;
case NPC_BREAKARMOR:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
- if(dstsd && battle_config.equip_skill_break_rate)
+ if(dstsd && rand()%10000 < 10*skilllv*battle_config.equip_skill_break_rate)
pc_breakarmor(dstsd);
break;
case NPC_BREAKHELM:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
- if(dstsd && battle_config.equip_skill_break_rate)
+ if(dstsd && rand()%10000 < 10*skilllv*battle_config.equip_skill_break_rate)
pc_breakhelm(dstsd);
break;
case NPC_BREAKSHIELD:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
- if(dstsd && battle_config.equip_skill_break_rate)
+ if(dstsd && rand()%10000 < 10*skilllv*battle_config.equip_skill_break_rate)
pc_breakshield(dstsd);
break;