Package mage.game.events

Examples of mage.game.events.DamagedCreatureEvent


      if (actualDamage > 0) {
        if (this.damage + event.getAmount() > this.toughness.getValue()) {
          actualDamage = this.toughness.getValue() - this.damage;
        }
        this.damage += actualDamage;
        game.fireEvent(new DamagedCreatureEvent(objectId, sourceId, controllerId, actualDamage, combat));
        return actualDamage;
      }
    }
    return 0;
  }
View Full Code Here


                        addCounters(CounterType.M1M1.createInstance(actualDamage), game);
                    }
                } else {
                    this.damage += actualDamage;
                }
                game.fireEvent(new DamagedCreatureEvent(objectId, sourceId, controllerId, actualDamage, combat));
                return actualDamage;
            }
        }
        return 0;
    }
View Full Code Here

TOP

Related Classes of mage.game.events.DamagedCreatureEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.