mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
DamageDealEffect: add RelativeTarget for to be relative to Damage Source
This commit is contained in:
@@ -163,7 +163,11 @@ public class DamageDealEffect extends DamageBaseEffect {
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (sa.hasParam("RelativeTarget")) {
|
||||
tgts = AbilityUtils.getDefinedObjects(source, sa.getParam("Defined"), sa);
|
||||
}
|
||||
|
||||
for (final Object o : tgts) {
|
||||
dmg = (sa.usesTargeting() && sa.hasParam("DividedAsYouChoose")) ? sa.getTargetRestrictions().getDividedValue(o) : dmg;
|
||||
if (o instanceof Card) {
|
||||
|
||||
Reference in New Issue
Block a user