mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Counters moved from being on Card to on GameEntity allowing Poison + Experience Counters to work the same as other counter types
- Improved some PlayerView updates which weren't re-writing player detail hoverbox often enough
This commit is contained in:
@@ -1485,8 +1485,15 @@ public class AiController {
|
||||
}
|
||||
|
||||
for (Player e : enemies) {
|
||||
if (e.getPoisonCounters() > 0) {
|
||||
result.put(e, null); // poison counter type is hardcoded at data consumer's side (this works while players may have no other counters)
|
||||
// TODO In the future check of enemies can get poison counters and give them some other bad counter type
|
||||
if (e.getCounters(CounterType.POISON) > 0) {
|
||||
result.put(e, CounterType.POISON);
|
||||
}
|
||||
}
|
||||
|
||||
for (Player pl : allies) {
|
||||
if (pl.getCounters(CounterType.EXPERIENCE) > 0) {
|
||||
result.put(pl, CounterType.EXPERIENCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user