diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-28 05:43:03 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-28 05:43:03 +0000 |
commit | b340ca4c2429e7b6320e3b3b81a079bd1ab9ccdc (patch) | |
tree | 2698a5aed724ce76563dfb1cf27c0a95281ff6ec /src/map/skill.c | |
parent | 24ae84fd70124f57a94da489588df39ea09f3d00 (diff) | |
download | hercules-b340ca4c2429e7b6320e3b3b81a079bd1ab9ccdc.tar.gz hercules-b340ca4c2429e7b6320e3b3b81a079bd1ab9ccdc.tar.bz2 hercules-b340ca4c2429e7b6320e3b3b81a079bd1ab9ccdc.tar.xz hercules-b340ca4c2429e7b6320e3b3b81a079bd1ab9ccdc.zip |
Fixed bugreport:5515 targets in manhole may now be targeted by shadow form.
Also fixed manhole appearance changing to a trap when activated.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index e4f75ddcc..317ec007e 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -10231,15 +10231,15 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns sg->val2 = bl->id; } else sec = 3000; //Couldn't trap it? - clif_skillunit_update(&src->bl); - - /** - * If you're snared from a trap that was invisible this makes the trap be - * visible again -- being you stepped on it (w/o this the trap remains invisible and you go "WTF WHY I CANT MOVE") - * bugreport:3961 - **/ - clif_changetraplook(&src->bl, UNT_ANKLESNARE); - + if( sg->unit_id == UNT_ANKLESNARE ) { + clif_skillunit_update(&src->bl); + /** + * If you're snared from a trap that was invisible this makes the trap be + * visible again -- being you stepped on it (w/o this the trap remains invisible and you go "WTF WHY I CANT MOVE") + * bugreport:3961 + **/ + clif_changetraplook(&src->bl, UNT_ANKLESNARE); + } sg->limit = DIFF_TICK(tick,sg->tick)+sec; sg->interval = -1; src->range = 0; |