Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-782 committed Dec 20, 2023
1 parent 90af9c8 commit 2a1e19e
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 17 deletions.
8 changes: 7 additions & 1 deletion src/triggerEvents/unit/UnitEventBuffEnded.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 7 additions & 1 deletion src/triggerEvents/unit/UnitEventBuffReceived.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
8 changes: 7 additions & 1 deletion src/triggerEvents/unit/UnitEventBuffRefreshed.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/triggerEvents/unit/UnitEventProjectileHit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions src/triggerEvents/unit/UnitEventProjectileLaunch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
13 changes: 11 additions & 2 deletions src/triggerEvents/unit/UnitEventSpellCast.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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());
Expand Down
13 changes: 11 additions & 2 deletions src/triggerEvents/unit/UnitEventSpellChannel.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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());
Expand Down
13 changes: 11 additions & 2 deletions src/triggerEvents/unit/UnitEventSpellEffect.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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());
Expand Down
13 changes: 11 additions & 2 deletions src/triggerEvents/unit/UnitEventSpellEndcast.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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());
Expand Down
13 changes: 11 additions & 2 deletions src/triggerEvents/unit/UnitEventSpellFinish.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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());
Expand Down

0 comments on commit 2a1e19e

Please sign in to comment.