mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Attack AI: Afflict should be considered as a combat effect for the purpose of attacking into non-lethal blockers.
This commit is contained in:
@@ -1060,7 +1060,8 @@ public class AiAttackController {
|
|||||||
|| "Blocked".equals(attacker.getSVar("HasAttackEffect"));
|
|| "Blocked".equals(attacker.getSVar("HasAttackEffect"));
|
||||||
if (!hasCombatEffect) {
|
if (!hasCombatEffect) {
|
||||||
for (String keyword : attacker.getKeywords()) {
|
for (String keyword : attacker.getKeywords()) {
|
||||||
if (keyword.equals("Wither") || keyword.equals("Infect") || keyword.equals("Lifelink")) {
|
if (keyword.equals("Wither") || keyword.equals("Infect")
|
||||||
|
|| keyword.equals("Lifelink") || keyword.startsWith("Afflict")) {
|
||||||
hasCombatEffect = true;
|
hasCombatEffect = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user