Cleanup: source deals damage to {this}; mill cards (#10603)

* New common class for "Whenever a source deals damage to {this}, " which resolves #9340 
* Merge `PutLibraryIntoGraveTargetEffect` with functionally identical `MillCardsTargetEffect`
* Text fix on `RevealDragonFromHandCost` noticed in #10593
* Text fix following up on #10594
This commit is contained in:
xenohedron 2023-07-09 22:05:28 -04:00 committed by GitHub
parent 73104f6705
commit 6c9079012c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
101 changed files with 297 additions and 590 deletions

View file

@ -89,7 +89,7 @@ public class SacrificeEffect extends OneShotEffect {
if (preText != null) {
sb.append(preText);
}
if (preText != null && (preText.endsWith("player") || preText.endsWith("opponent"))) {
if (preText != null && (preText.endsWith("player") || preText.endsWith("opponent") || preText.endsWith("controller"))) {
sb.append(" sacrifices ");
} else {
if (preText == null || preText.isEmpty()) {