forked from External/mage
clean all usage of GameEvent::setSourceId
This commit is contained in:
parent
8771d9b7f5
commit
868cd4d8fd
40 changed files with 114 additions and 100 deletions
|
|
@ -11,10 +11,9 @@ public abstract class DamagedEvent extends GameEvent {
|
|||
protected int excess;
|
||||
|
||||
public DamagedEvent(EventType type, UUID targetId, UUID attackerId, UUID playerId, int amount, boolean combat) {
|
||||
super(type, targetId, null, playerId, amount, false);
|
||||
super(type, targetId, attackerId, playerId, amount, false);
|
||||
this.combat = combat;
|
||||
this.excess = 0;
|
||||
this.setSourceId(attackerId);
|
||||
}
|
||||
|
||||
public boolean isCombatDamage() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue