Skip to content

Add Block ability button (pending smart contract support) #181

@0x1NotMe

Description

@0x1NotMe

Problem

The game is missing a 'Block' ability button that players need for defensive gameplay.

Current State

  • No Block ability exists in the current ability system
  • Warrior class has ShieldWall (defensive buff) but no dedicated Block action
  • Ability enum and metadata would need to be updated once smart contract supports it

Dependencies

⚠️ This feature requires smart contract changes first before frontend implementation can begin

Proposed Implementation (once contract is ready)

  1. Add Block to Ability enum in src/types/domain/enums.ts
  2. Update ability metadata in src/data/abilities.ts with:
    • Name: "Block"
    • Description: "Reduce incoming damage for the next turn"
    • requiresTarget: false
  3. Add ability button to the UI with appropriate icon
  4. Handle cooldown and ability stages if applicable

Files to Update

  • src/types/domain/enums.ts - Add Block to Ability enum
  • src/data/abilities.ts - Add Block metadata
  • src/components/game/controls/AbilityButton.tsx - Handle Block ability icon/styling
  • Contract ABI files once updated

Acceptance Criteria

  • Block ability appears in the ability bar
  • Block ability has appropriate icon and tooltip
  • Block ability correctly interacts with the smart contract
  • Cooldowns and stages work as designed
  • Visual feedback when Block is active

Context

Feedback from Alex FastLane: Players need a Block ability for defensive gameplay options.

Note: Frontend work blocked until smart contract implementation is complete.

Labels: by-claude, enhancement, blocked, contract-dependency

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions