Przeglądaj źródła

Fixed cast sensor not working (follow-up to 55e4df1)
- Monsters with cast sensor will now start to attack the caster at cast begin again

Playtester 9 lat temu
rodzic
commit
63e8fa0721
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/map/unit.c

+ 1 - 1
src/map/unit.c

@@ -1830,7 +1830,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
 
 		mobskill_event(md, src, tick, -1); // Cast targetted skill event.
 
-		if (status_has_mode(tstatus,MD_CASTSENSOR_IDLE|MD_CASTSENSOR_CHASE) && battle_check_target(target, src, BCT_ENEMY) > 0) {
+		if ((status_has_mode(tstatus,MD_CASTSENSOR_IDLE) || status_has_mode(tstatus,MD_CASTSENSOR_CHASE)) && battle_check_target(target, src, BCT_ENEMY) > 0) {
 			switch (md->state.skillstate) {
 				case MSS_RUSH:
 				case MSS_FOLLOW: