浏览代码

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 年之前
父节点
当前提交
63e8fa0721
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: