summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-02 17:54:13 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-02 17:54:13 +0000
commit5d75265b8cd2295dbd0b815288bd88ec0da69d8d (patch)
tree2d47f86723eb9ac43cbf60640cddcba2e5d294ae /src/map/clif.c
parentc18d4eaa0335d8c873a87debb8cbd0a60bfcb436 (diff)
downloadhercules-5d75265b8cd2295dbd0b815288bd88ec0da69d8d.tar.gz
hercules-5d75265b8cd2295dbd0b815288bd88ec0da69d8d.tar.bz2
hercules-5d75265b8cd2295dbd0b815288bd88ec0da69d8d.tar.xz
hercules-5d75265b8cd2295dbd0b815288bd88ec0da69d8d.zip
Just some generic cleanups.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13556 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 739805f04..b17e85aab 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9378,7 +9378,10 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd)
return;
if( sd->bl.id != target_id && !sd->state.skill_flag && tmp&INF_SELF_SKILL )
- target_id = sd->bl.id; //What good is it to mess up the target in self skills? Wished I knew... [Skotlex]
+ target_id = sd->bl.id; // never trust the client
+
+ if( target_id < 0 && -target_id == sd->bl.id ) // for disguises [Valaris]
+ target_id = sd->bl.id;
if( sd->ud.skilltimer != -1 )
{
@@ -9397,9 +9400,6 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd)
if( sd->sc.data[SC_BASILICA] && (skillnum != HP_BASILICA || sd->sc.data[SC_BASILICA]->val4 != sd->bl.id) )
return; // On basilica only caster can use Basilica again to stop it.
- if( target_id < 0 && -target_id == sd->bl.id ) // for disguises [Valaris]
- target_id = sd->bl.id;
-
if( sd->menuskill_id )
{
if( sd->menuskill_id == SA_TAMINGMONSTER )