From ff6317b65b37c6439076afd810193baf893b3611 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 18 Jul 2006 13:25:21 +0000 Subject: - Added a proper check to make aggressive mobs never override homun targets regardless of distance. - Removed a bunch of homun-related variables that are not needed at all. The alive condition is removed, now the code checks for the hp value to know if the homun is alive or not. - Cleaned up a bit the skill-id function, homun skill checks (such as delay and skill-lv learned) should be correct now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7727 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index 361d93ed3..777f75dfc 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2006,7 +2006,8 @@ static struct Damage battle_calc_weapon_attack( if (breakrate) skill_break_equip(src, EQP_WEAPON, breakrate, BCT_SELF); } - if (battle_config.equip_skill_break_rate) + //Cart Termination won't trigger breaking data. Why? No idea, go ask Gravity. + if (battle_config.equip_skill_break_rate && skill_num != WS_CARTTERMINATION) { // Target equipment breaking int breakrate[2] = {0,0}; // weapon = 0, armor = 1 if (sd) { // Break rate from equipment -- cgit v1.2.3-70-g09d2