Examples of DamagedCreatureEvent


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

Examples of mage.game.events.DamagedCreatureEvent

                        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
Copyright © 2018 www.massapi.com. 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.