Bladeren bron

Fixed Ankle Snare visibility issue, bugreport:3961
-- activating (stepping on) a invisible ankle snare now makes the trap visible again

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15174 54d463be-8e91-2dee-dedb-b68131a5f0ec

shennetsind 13 jaren geleden
bovenliggende
commit
0904088718
1 gewijzigde bestanden met toevoegingen van 8 en 0 verwijderingen
  1. 8 0
      src/map/skill.c

+ 8 - 0
src/map/skill.c

@@ -9141,6 +9141,14 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns
 				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);
+
 				sg->limit = DIFF_TICK(tick,sg->tick)+sec;
 				sg->interval = -1;
 				src->range = 0;