summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-15 06:26:50 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-15 06:26:50 +0000
commitd8ff7fd9bed5eebf76b02849b1cc5722ad6b3e23 (patch)
tree5aa40a2a50bbc2b5ac4410aad02185aa276f5a07 /src/map/skill.c
parentfd0d48141125ddd5dc20f0ee6ab5752a5138bb87 (diff)
downloadhercules-d8ff7fd9bed5eebf76b02849b1cc5722ad6b3e23.tar.gz
hercules-d8ff7fd9bed5eebf76b02849b1cc5722ad6b3e23.tar.bz2
hercules-d8ff7fd9bed5eebf76b02849b1cc5722ad6b3e23.tar.xz
hercules-d8ff7fd9bed5eebf76b02849b1cc5722ad6b3e23.zip
* Fixed a compile warning in pc.c
* Updated Soul Breaker's damage display * Some shops and scripts fixes git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1234 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 05c7bc89c..f75ffdd6a 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1436,10 +1436,14 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds
break;
case ASC_BREAKER: // [celest]
if (attack_type&BF_MAGIC) { // only display damage for the 2nd attack
- clif_skill_damage(dsrc, bl, tick, dmg.amotion, dmg.dmotion, damage+tmpdmg, dmg.div_, skillid, skilllv, type);
+ if (damage + tmpdmg != 0) // if both attacks missed, do not display a 2nd 'miss'
+ clif_skill_damage(dsrc, bl, tick, dmg.amotion, dmg.dmotion, damage+tmpdmg, dmg.div_, skillid, skilllv, type);
tmpdmg = 0; // clear the temporary damage
- } else
+ } else {
+ if (damage == 0) // if weapon attack missed, display the 'miss'
+ clif_skill_damage(dsrc, bl, tick, dmg.amotion, dmg.dmotion, 0, dmg.div_, skillid, skilllv, type);
tmpdmg = damage; // store the temporary weapon damage
+ }
break;
case NPC_SELFDESTRUCTION:
case NPC_SELFDESTRUCTION2: