-
-
Notifications
You must be signed in to change notification settings - Fork 153
fix(engine): bind Devour counters to sacrifice count #7503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f69e6ad
9d0dc45
1c597f5
7067be4
a3dd2a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -972,6 +972,7 @@ fn quantity_ref_uses_unspent_mana(qty: &QuantityRef) -> bool { | |||||||||||||
| | QuantityRef::TrackedSetAggregate { .. } | ||||||||||||||
| | QuantityRef::ExiledFromHandThisResolution | ||||||||||||||
| | QuantityRef::PreviousEffectAmount { .. } | ||||||||||||||
| | QuantityRef::PreviousEffectCount | ||||||||||||||
| | QuantityRef::LifeLostThisTurn { .. } | ||||||||||||||
| | QuantityRef::PartySize { .. } | ||||||||||||||
| | QuantityRef::Speed { .. } | ||||||||||||||
|
|
@@ -1301,6 +1302,7 @@ fn quantity_ref_uses_object_count(qty: &QuantityRef) -> bool { | |||||||||||||
| | QuantityRef::TrackedSetAggregate { .. } | ||||||||||||||
| | QuantityRef::ExiledFromHandThisResolution | ||||||||||||||
| | QuantityRef::PreviousEffectAmount { .. } | ||||||||||||||
| | QuantityRef::PreviousEffectCount | ||||||||||||||
| | QuantityRef::LifeLostThisTurn { .. } | ||||||||||||||
| | QuantityRef::Speed { .. } | ||||||||||||||
| | QuantityRef::EventContextAmount | ||||||||||||||
|
|
@@ -1596,6 +1598,7 @@ fn quantity_ref_characteristic_reads(qty: &QuantityRef, depth: u32) -> Character | |||||||||||||
| | QuantityRef::TrackedSetSize | ||||||||||||||
| | QuantityRef::ExiledFromHandThisResolution | ||||||||||||||
| | QuantityRef::PreviousEffectAmount { .. } | ||||||||||||||
| | QuantityRef::PreviousEffectCount | ||||||||||||||
| | QuantityRef::LifeLostThisTurn { .. } | ||||||||||||||
| | QuantityRef::UnspentMana { .. } | ||||||||||||||
| | QuantityRef::Speed { .. } | ||||||||||||||
|
|
@@ -1860,6 +1863,7 @@ fn entered_object_perturbs_quantity_ref( | |||||||||||||
| | QuantityRef::TrackedSetAggregate { .. } | ||||||||||||||
| | QuantityRef::ExiledFromHandThisResolution | ||||||||||||||
| | QuantityRef::PreviousEffectAmount { .. } | ||||||||||||||
| | QuantityRef::PreviousEffectCount | ||||||||||||||
| | QuantityRef::LifeLostThisTurn { .. } | ||||||||||||||
| | QuantityRef::Speed { .. } | ||||||||||||||
| | QuantityRef::EventContextAmount | ||||||||||||||
|
|
@@ -3990,6 +3994,9 @@ fn resolve_ref( | |||||||||||||
| // (Contest of Claws). 0 when the preceding effect dealt no excess. | ||||||||||||||
| DamageChannel::Excess => state.last_effect_excess_amount.unwrap_or(0), | ||||||||||||||
| }, | ||||||||||||||
| // CR 608.2c: Reads the preceding resolution-local choice count directly; | ||||||||||||||
| // unlike EventContextAmount, an enclosing trigger cannot shadow it. | ||||||||||||||
| QuantityRef::PreviousEffectCount => state.last_effect_count.unwrap_or(0), | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Replace the incorrect CR citation.
Keep this generic resolver comment implementation-focused, and add the verified Devour citation at the rules-specific consumer. Proposed comment change- // CR 608.2c: Reads the preceding resolution-local choice count directly;
- // unlike EventContextAmount, an enclosing trigger cannot shadow it.
+ // Read the preceding continuation-local effect count directly.
+ // An unavailable count resolves to zero.Based on learnings: cite CR 608.2c only when documenting resolution of written instructions “in order,” not for this count lookup. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI AgentsSources: Learnings, MCP tools |
||||||||||||||
| // CR 608.2c: "for each [thing] this way" — read the most recent tracked set size. | ||||||||||||||
| QuantityRef::TrackedSetSize => state | ||||||||||||||
| .tracked_object_sets | ||||||||||||||
|
|
||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.