feat: update
This commit is contained in:
@@ -159,18 +159,18 @@ func use_special_effect() -> bool:
|
||||
|
||||
# Restriction: Cannot use attack mode while carrying a Tekton or in Ghost mode
|
||||
if player.is_carrying_tekton:
|
||||
NotificationManager.send_message(player, "Cannot enter Attack Mode while carrying a Tekton!", NotificationManager.MessageType.WARNING)
|
||||
NotificationManager.send_message(player, "Cannot use Charged Strike while carrying a Tekton!", NotificationManager.MessageType.WARNING)
|
||||
return false
|
||||
|
||||
if player.get("is_invisible"):
|
||||
NotificationManager.send_message(player, "Cannot enter Attack Mode while in Ghost mode!", NotificationManager.MessageType.WARNING)
|
||||
NotificationManager.send_message(player, "Cannot use Charged Strike while in Ghost mode!", NotificationManager.MessageType.WARNING)
|
||||
return false
|
||||
|
||||
# Enable Attack Mode explicitly
|
||||
player.is_attack_mode = true
|
||||
# Do NOT consume boost here. Boost acts as "fuel" for the attacks.
|
||||
# Notification check handled by caller or signal
|
||||
return true
|
||||
if player.has_method("enter_charged_strike"):
|
||||
player.enter_charged_strike()
|
||||
return true
|
||||
|
||||
return false
|
||||
|
||||
func consume_boost(amount: float):
|
||||
"""Consume a specific amount of boost."""
|
||||
|
||||
Reference in New Issue
Block a user