diff --git a/src/triggerEvents/unit/UnitEventBuffEnded.ts b/src/triggerEvents/unit/UnitEventBuffEnded.ts index 7b7c8c3..0607055 100644 --- a/src/triggerEvents/unit/UnitEventBuffEnded.ts +++ b/src/triggerEvents/unit/UnitEventBuffEnded.ts @@ -1,7 +1,13 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetTriggerBuff, GetTriggerBuffSourceAbility, GetTriggerBuffSourceUnit, HAbility, HBuff } from "../../utils/common.js"; +import { + GetTriggerBuff, + GetTriggerBuffSourceAbility, + GetTriggerBuffSourceUnit, + HAbility, + HBuff, +} from "../../utils/common.js"; export class UnitEventBuffEnded extends TriggerUnitEvent<"buffEnded"> { readonly recievedBuff: HBuff; diff --git a/src/triggerEvents/unit/UnitEventBuffReceived.ts b/src/triggerEvents/unit/UnitEventBuffReceived.ts index 1c8301c..74476e1 100644 --- a/src/triggerEvents/unit/UnitEventBuffReceived.ts +++ b/src/triggerEvents/unit/UnitEventBuffReceived.ts @@ -1,7 +1,13 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetTriggerBuff, GetTriggerBuffSourceAbility, GetTriggerBuffSourceUnit, HAbility, HBuff } from "../../utils/common.js"; +import { + GetTriggerBuff, + GetTriggerBuffSourceAbility, + GetTriggerBuffSourceUnit, + HAbility, + HBuff, +} from "../../utils/common.js"; export class UnitEventBuffReceived extends TriggerUnitEvent<"buffReceived"> { readonly recievedBuff: HBuff; diff --git a/src/triggerEvents/unit/UnitEventBuffRefreshed.ts b/src/triggerEvents/unit/UnitEventBuffRefreshed.ts index 2abfeef..ced405e 100644 --- a/src/triggerEvents/unit/UnitEventBuffRefreshed.ts +++ b/src/triggerEvents/unit/UnitEventBuffRefreshed.ts @@ -1,7 +1,13 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetTriggerBuff, GetTriggerBuffSourceAbility, GetTriggerBuffSourceUnit, HAbility, HBuff } from "../../utils/common.js"; +import { + GetTriggerBuff, + GetTriggerBuffSourceAbility, + GetTriggerBuffSourceUnit, + HAbility, + HBuff, +} from "../../utils/common.js"; export class UnitEventBuffRefreshed extends TriggerUnitEvent<"buffRefreshed"> { readonly recievedBuff: HBuff; diff --git a/src/triggerEvents/unit/UnitEventProjectileHit.ts b/src/triggerEvents/unit/UnitEventProjectileHit.ts index 3646a64..0d565bf 100644 --- a/src/triggerEvents/unit/UnitEventProjectileHit.ts +++ b/src/triggerEvents/unit/UnitEventProjectileHit.ts @@ -4,8 +4,8 @@ import { GetTriggerProjectile, GetTriggerProjectileSource, HProjectile } from ". import { Unit } from "../../handles/Unit.js"; export class UnitEventProjectileHit extends TriggerUnitEvent<"projectileHit"> { - readonly source:Unit; - readonly projectile:HProjectile; + readonly source: Unit; + readonly projectile: HProjectile; constructor() { super("projectileHit"); this.source = fromHandleHolderSoft(GetTriggerProjectileSource()); diff --git a/src/triggerEvents/unit/UnitEventProjectileLaunch.ts b/src/triggerEvents/unit/UnitEventProjectileLaunch.ts index bb713d7..79700bf 100644 --- a/src/triggerEvents/unit/UnitEventProjectileLaunch.ts +++ b/src/triggerEvents/unit/UnitEventProjectileLaunch.ts @@ -4,8 +4,8 @@ import { Widget } from "../../handles/Widget.js"; import { GetTriggerProjectile, GetTriggerProjectileTarget, HProjectile } from "../../utils/common.js"; export class UnitEventProjectileLaunch extends TriggerUnitEvent<"projectileLaunch"> { - readonly target:Widget; - readonly projecitle:HProjectile; + readonly target: Widget; + readonly projecitle: HProjectile; constructor() { super("projectileLaunch"); this.target = fromHandleHolderSoft(GetTriggerProjectileTarget()); diff --git a/src/triggerEvents/unit/UnitEventSpellCast.ts b/src/triggerEvents/unit/UnitEventSpellCast.ts index 6e6e5ee..53446fe 100644 --- a/src/triggerEvents/unit/UnitEventSpellCast.ts +++ b/src/triggerEvents/unit/UnitEventSpellCast.ts @@ -1,7 +1,16 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetSpellAbility, GetSpellAbilityId, GetSpellTargetDestructable, GetSpellTargetItem, GetSpellTargetUnit, GetSpellTargetX, GetSpellTargetY, HAbility } from "../../utils/common.js"; +import { + GetSpellAbility, + GetSpellAbilityId, + GetSpellTargetDestructable, + GetSpellTargetItem, + GetSpellTargetUnit, + GetSpellTargetX, + GetSpellTargetY, + HAbility, +} from "../../utils/common.js"; import { Destructable } from "../../handles/Destructable.js"; import { Item } from "../../handles/Item.js"; @@ -14,7 +23,7 @@ export class UnitEventSpellCast extends TriggerUnitEvent<"spellCast"> { readonly targetDestructable: Destructable; readonly targetItem: Item; readonly targetUnit: Unit; - constructor() { + constructor() { super("spellCast"); this.abilityId = GetSpellAbilityId(); this.ability = fromHandleHolderSoft(GetSpellAbility()); diff --git a/src/triggerEvents/unit/UnitEventSpellChannel.ts b/src/triggerEvents/unit/UnitEventSpellChannel.ts index bedd73b..bc9e610 100644 --- a/src/triggerEvents/unit/UnitEventSpellChannel.ts +++ b/src/triggerEvents/unit/UnitEventSpellChannel.ts @@ -1,7 +1,16 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetSpellAbility, GetSpellAbilityId, GetSpellTargetDestructable, GetSpellTargetItem, GetSpellTargetUnit, GetSpellTargetX, GetSpellTargetY, HAbility } from "../../utils/common.js"; +import { + GetSpellAbility, + GetSpellAbilityId, + GetSpellTargetDestructable, + GetSpellTargetItem, + GetSpellTargetUnit, + GetSpellTargetX, + GetSpellTargetY, + HAbility, +} from "../../utils/common.js"; import { Destructable } from "../../handles/Destructable.js"; import { Item } from "../../handles/Item.js"; @@ -14,7 +23,7 @@ export class UnitEventSpellChannel extends TriggerUnitEvent<"spellChannel"> { readonly targetDestructable: Destructable; readonly targetItem: Item; readonly targetUnit: Unit; - constructor() { + constructor() { super("spellChannel"); this.abilityId = GetSpellAbilityId(); this.ability = fromHandleHolderSoft(GetSpellAbility()); diff --git a/src/triggerEvents/unit/UnitEventSpellEffect.ts b/src/triggerEvents/unit/UnitEventSpellEffect.ts index 4a1cd17..042fe55 100644 --- a/src/triggerEvents/unit/UnitEventSpellEffect.ts +++ b/src/triggerEvents/unit/UnitEventSpellEffect.ts @@ -1,7 +1,16 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetSpellAbility, GetSpellAbilityId, GetSpellTargetDestructable, GetSpellTargetItem, GetSpellTargetUnit, GetSpellTargetX, GetSpellTargetY, HAbility } from "../../utils/common.js"; +import { + GetSpellAbility, + GetSpellAbilityId, + GetSpellTargetDestructable, + GetSpellTargetItem, + GetSpellTargetUnit, + GetSpellTargetX, + GetSpellTargetY, + HAbility, +} from "../../utils/common.js"; import { Destructable } from "../../handles/Destructable.js"; import { Item } from "../../handles/Item.js"; @@ -14,7 +23,7 @@ export class UnitEventSpellEffect extends TriggerUnitEvent<"spellEffect"> { readonly targetDestructable: Destructable; readonly targetItem: Item; readonly targetUnit: Unit; - constructor() { + constructor() { super("spellEffect"); this.abilityId = GetSpellAbilityId(); this.ability = fromHandleHolderSoft(GetSpellAbility()); diff --git a/src/triggerEvents/unit/UnitEventSpellEndcast.ts b/src/triggerEvents/unit/UnitEventSpellEndcast.ts index c0c968a..e2c4d05 100644 --- a/src/triggerEvents/unit/UnitEventSpellEndcast.ts +++ b/src/triggerEvents/unit/UnitEventSpellEndcast.ts @@ -1,7 +1,16 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetSpellAbility, GetSpellAbilityId, GetSpellTargetDestructable, GetSpellTargetItem, GetSpellTargetUnit, GetSpellTargetX, GetSpellTargetY, HAbility } from "../../utils/common.js"; +import { + GetSpellAbility, + GetSpellAbilityId, + GetSpellTargetDestructable, + GetSpellTargetItem, + GetSpellTargetUnit, + GetSpellTargetX, + GetSpellTargetY, + HAbility, +} from "../../utils/common.js"; import { Destructable } from "../../handles/Destructable.js"; import { Item } from "../../handles/Item.js"; @@ -14,7 +23,7 @@ export class UnitEventSpellEndcast extends TriggerUnitEvent<"spellEndcast"> { readonly targetDestructable: Destructable; readonly targetItem: Item; readonly targetUnit: Unit; - constructor() { + constructor() { super("spellEndcast"); this.abilityId = GetSpellAbilityId(); this.ability = fromHandleHolderSoft(GetSpellAbility()); diff --git a/src/triggerEvents/unit/UnitEventSpellFinish.ts b/src/triggerEvents/unit/UnitEventSpellFinish.ts index 247d7a0..2d169fa 100644 --- a/src/triggerEvents/unit/UnitEventSpellFinish.ts +++ b/src/triggerEvents/unit/UnitEventSpellFinish.ts @@ -1,7 +1,16 @@ import { Unit } from "../../handles/Unit.js"; import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; -import { GetSpellAbility, GetSpellAbilityId, GetSpellTargetDestructable, GetSpellTargetItem, GetSpellTargetUnit, GetSpellTargetX, GetSpellTargetY, HAbility } from "../../utils/common.js"; +import { + GetSpellAbility, + GetSpellAbilityId, + GetSpellTargetDestructable, + GetSpellTargetItem, + GetSpellTargetUnit, + GetSpellTargetX, + GetSpellTargetY, + HAbility, +} from "../../utils/common.js"; import { Destructable } from "../../handles/Destructable.js"; import { Item } from "../../handles/Item.js"; @@ -14,7 +23,7 @@ export class UnitEventSpellFinish extends TriggerUnitEvent<"spellFinish"> { readonly targetDestructable: Destructable; readonly targetItem: Item; readonly targetUnit: Unit; - constructor() { + constructor() { super("spellFinish"); this.abilityId = GetSpellAbilityId(); this.ability = fromHandleHolderSoft(GetSpellAbility());