Skip to content

Commit

Permalink
Should be the last energy using damage manager with issues (#1018)
Browse files Browse the repository at this point in the history
* Should be the last energy using damage manager with issues

* I am bad at search
  • Loading branch information
flagrama authored Nov 28, 2020
1 parent d8fc670 commit 20ba453
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tcgwars/logic/impl/gen3/Emerald.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1825,9 +1825,9 @@ public enum Emerald implements LogicCardInfo {
eff = delayed {
after PROCESS_ATTACK_EFFECTS, {
if (self.types.contains(D) || self.topPokemonCard.name.contains("Dark ")) {
bg.dm().each() {
if (it.from == self && it.to.active && it.to.owner != self.owner && it.dmg.value) {
targeted self, Source.SRC_SPENERGY, {
targeted self, Source.SRC_SPENERGY, {
bg.dm().each() {
if (it.from == self && it.to.active && it.to.owner != self.owner && it.dmg.value) {
bc "Darkness Energy +10"
it.dmg += hp(10)
}
Expand Down Expand Up @@ -1858,9 +1858,9 @@ public enum Emerald implements LogicCardInfo {
onPlay { reason ->
eff = delayed {
after PROCESS_ATTACK_EFFECTS, {
if (ef.attacker == self) bg.dm().each {
if (it.to.owner != self.owner && it.dmg.value) {
targeted self, Source.SRC_SPENERGY, {
targeted self, Source.SRC_SPENERGY, {
if (ef.attacker == self) bg.dm().each {
if (it.to.owner != self.owner && it.dmg.value) {
bc "Double Rainbow Energy -10"
it.dmg -= hp(10)
}
Expand Down

0 comments on commit 20ba453

Please sign in to comment.