diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-31 14:00:28 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-31 14:00:28 +0000 |
commit | 4dde9f9302f5ccbb778dd0370de5475920c5d1bd (patch) | |
tree | b960571ebd95b6699cb109710809a77615062c79 /src/map/skill.c | |
parent | 02362c16be45657f049202126fe48015d5213fad (diff) | |
download | hercules-4dde9f9302f5ccbb778dd0370de5475920c5d1bd.tar.gz hercules-4dde9f9302f5ccbb778dd0370de5475920c5d1bd.tar.bz2 hercules-4dde9f9302f5ccbb778dd0370de5475920c5d1bd.tar.xz hercules-4dde9f9302f5ccbb778dd0370de5475920c5d1bd.zip |
- Adjusted the range of Wall of Fog to 9 and Spider Web to 7
- Modified a bit the skill packets of Sharp-Shooting and Brandish Spear in hopes of fixing it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5824 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 6ccb90b2e..84ba770df 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1911,7 +1911,6 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds switch(skillid){
//Skills who's damage should't show any skill-animation.
case SM_MAGNUM:
- case KN_BRANDISHSPEAR:
case AS_SPLASHER:
case ASC_METEORASSAULT:
case SG_SUN_WARM:
@@ -1919,6 +1918,15 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds case SG_STAR_WARM:
clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, skillid, -1, 5);
break;
+ case KN_BRANDISHSPEAR:
+ case SN_SHARPSHOOTING:
+ { //Only display skill animation for skill's target.
+ struct unit_data *ud = unit_bl2ud(src);
+ if (ud && ud->skilltarget == bl->id)
+ clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, skillid, (lv!=0)?lv:skilllv, type);
+ else
+ clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, skillid, -1, type);
+ }
case PA_GOSPEL: //Should look like Holy Cross [Skotlex]
clif_skill_damage(dsrc,bl,tick,dmg.amotion,dmg.dmotion, damage, dmg.div_, CR_HOLYCROSS, -1, 5);
break;
@@ -1940,7 +1948,6 @@ int skill_attack( int attack_type, struct block_list* src, struct block_list *ds dmg.blewcount = 10;
break;
case KN_AUTOCOUNTER: //Skills that need be passed as a normal attack for the client to display correctly.
- case SN_SHARPSHOOTING:
case TF_DOUBLE:
case GS_CHAINACTION:
clif_damage(src,bl,tick,dmg.amotion,dmg.dmotion,damage,dmg.div_,dmg.type,dmg.damage2);
@@ -8268,7 +8275,6 @@ int skill_check_condition(struct map_session_data *sd,int skill, int lv, int typ */
int skill_castfix( struct block_list *bl, int skill_id, int skill_lv)
{
- struct status_change *sc;
int castnodex = skill_get_castnodex(skill_id, skill_lv);
int time = skill_get_cast(skill_id, skill_lv);
struct map_session_data *sd;
|