Explorar o código

Fixes Can't attack when casting is disabled (#6687)

* Fixes #6686.
* Expands upon the status checks to allow physical attacks when casting is disabled.
Singe Horizontal %!s(int64=3) %!d(string=hai) anos
pai
achega
4ef2f33284
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/status.cpp

+ 1 - 1
src/map/status.cpp

@@ -1481,7 +1481,7 @@ bool status_check_skilluse(struct block_list *src, struct block_list *target, ui
 			return false;
 		}
 
-		if (sc->cant.cast && skill_id != RK_REFRESH && skill_id != SU_GROOMING && skill_id != SR_GENTLETOUCH_CURE) { // Stuned/Frozen/etc
+		if (skill_id && sc->cant.cast && skill_id != RK_REFRESH && skill_id != SU_GROOMING && skill_id != SR_GENTLETOUCH_CURE) { // Stuned/Frozen/etc
 			if (flag != 1) // Can't cast, casted stuff can't damage.
 				return false;
 			if (skill_get_casttype(skill_id) == CAST_DAMAGE)