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
|
|
@ -12,9 +12,8 @@ public abstract class DamageEvent extends GameEvent {
|
|||
private boolean asThoughWither = false;
|
||||
|
||||
public DamageEvent(EventType type, UUID targetId, UUID damageSourceId, UUID targetControllerId, int amount, boolean preventable, boolean combat) {
|
||||
super(type, targetId, null, targetControllerId, amount, preventable);
|
||||
super(type, targetId, damageSourceId, targetControllerId, amount, preventable);
|
||||
this.combat = combat;
|
||||
this.setSourceId(damageSourceId);
|
||||
}
|
||||
|
||||
public boolean isCombatDamage() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue