Browse Source

Fixes Wug Rider allowing physical attacks (#6714)

* Fixes #6713.
* Physical attacks are now disabled when a Ranger-type class is riding a Wug.
Thanks to @Surefirer!
Aleos 3 years ago
parent
commit
242983f0dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/unit.cpp

+ 1 - 1
src/map/unit.cpp

@@ -2848,7 +2848,7 @@ bool unit_can_attack(struct block_list *bl, int target_id) {
 	if (bl->type == BL_PC) {
 		map_session_data *sd = ((TBL_PC *)bl);
 
-		if (sd && (sd->state.block_action & PCBLOCK_ATTACK))
+		if (sd && ((sd->state.block_action & PCBLOCK_ATTACK) || pc_isridingwug(sd)))
 			return false;
 	}