feat: Introduce an EnhancedGridMap with advanced generation, randomization, pathfinding, and data serialization, along with new player, powerup, and portal managers.
This commit is contained in:
@@ -160,6 +160,12 @@ func try_push(target_pos: Vector2i, direction: Vector2i) -> bool:
|
||||
if not other_player:
|
||||
return false
|
||||
|
||||
# === INVULNERABILITY CHECK ===
|
||||
if other_player.get("is_carrying_tekton"):
|
||||
print("[Move] Push blocked: Target is carrying a Tekton and is invulnerable.")
|
||||
NotificationManager.send_message(player, "Target is Immune!", NotificationManager.MessageType.WARNING)
|
||||
return false
|
||||
|
||||
# === NEW LOGIC: Only allow push if in ATTACK MODE ===
|
||||
if not player.get("is_attack_mode"):
|
||||
# Standard bumping effect or nothing?
|
||||
|
||||
Reference in New Issue
Block a user