Class PreDamageEvent
java.lang.Object
net.demilich.metastone.game.events.GameEvent
net.demilich.metastone.game.events.BasicGameEvent
net.demilich.metastone.game.events.ValueEvent
net.demilich.metastone.game.events.AbstractDamageEvent
net.demilich.metastone.game.events.PreDamageEvent
- All Implemented Interfaces:
Serializable
,Cloneable
,HasValue
,Notification
Just before damage is dealt.
Gives a change to modify damage using ModifyDamageSpell
.
- See Also:
-
Constructor Summary
ConstructorDescriptionPreDamageEvent
(GameContext context, Entity victim, Entity source, int damage, EnumSet<com.hiddenswitch.spellsource.rpc.Spellsource.DamageTypeMessage.DamageType> damageType) -
Method Summary
Methods inherited from class net.demilich.metastone.game.events.AbstractDamageEvent
getDamageType
Methods inherited from class net.demilich.metastone.game.events.ValueEvent
getValue
Methods inherited from class net.demilich.metastone.game.events.BasicGameEvent
getEventType, isClientInterested
Methods inherited from class net.demilich.metastone.game.events.GameEvent
clone, getDescription, getGameContext, getSource, getSourcePlayerId, getTarget, getTargetPlayerId, getTargets, isPowerHistory, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.demilich.metastone.game.events.Notification
getSource
-
Constructor Details
-
PreDamageEvent
public PreDamageEvent(GameContext context, Entity victim, Entity source, int damage, EnumSet<com.hiddenswitch.spellsource.rpc.Spellsource.DamageTypeMessage.DamageType> damageType)
-