🎴 Patuá Full Backup v5.0

June 2026 — Orisha Blessings + Wildcard + Combat Bug Fixes

📁
5
Entities
📄
21
Pages
🧩
25+
Components
🎴
3
Decks

v5.0 Key Systems & Fixes:

⚔️ Orisha Blessings

9 Orishas across 3 decks — triggered by axis combos (quebra+passada+attack)

✨ Wildcard Patuás

Invocação & Oferenda fill missing combo slots; consumed when blessing fires

💪 PowerCharm_2

All PowerCharm checks cover PowerCharm_2 (both find + filter)

🌊 IEMANJÁ Both Sides

iemanjaBless checked for player AND computer; cleared after damage

🌪️ IANSÃ Cleanup

iansaActive cleared on all counter-attack resolution paths

🥁 Ladainha Fix

ladainhaBlocksCounter reset at start of every turn (no bleed-through)

All Bug Fixes in v5.0

  • PowerCharm_2: All find() and filter() calls for PowerCharm now also check PowerCharm_2 — covers handleStanceDefense, handleCounterAttack (both branches), checkForCombat (all 4 sub-paths), computerAI hasPowerCharm check.
  • Invocacao/Oferenda (wildcards) now in persistentPatuas list → stay on board until blessing fires, then consumed into discard.
  • Wildcard combo logic: each wildcard fills exactly ONE missing slot (quebraFilled OR passadaFilled), not both at once.
  • ladainhaBlocksCounter reset to false at start of every turn (was bleeding across turns).
  • IEMANJÁ (computer side): player2.iemanjaBless is now checked in the player-attacks block, and cleared after damage resolves.
  • IEMANJÁ (player side): player1.iemanjaBless already checked in computer-attacks block; now player2.iemanjaBless cleared in no-stance resolve.
  • IANSÃ: iansaActive cleared on both counter-attack resolution paths (player-counter and computer-counter).
  • Wildcard consumption: after any Orisha blessing fires (both player and computer attack paths), wildcards used to complete the combo are removed from patuas and moved to discard.
  • Computer stance-defense path: usedPowerCharm find was using old player1 (wrong) instead of attackerKey-based find — fixed.
  • OXUMARE: oxumareActive flag correctly consumed in getCardZoneUpdates when a Passada is played.

How to Restore

  1. 1. Download the JSON backup file above.
  2. 2. Open Base44 AI chat and upload the file.
  3. 3. Say: "Restore Patuá v5.0 from this backup."
  4. 4. AI will recreate all entities, components, and pages using the schemas and instructions inside.