Skip to content

Commit

Permalink
Add Phantom Advent activity modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
moofMonkey committed Nov 27, 2024
1 parent 555affa commit 58748ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion wrapper/Objects/Heroes/npc_dota_hero_spectre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import { Hero } from "../Base/Hero"
export class npc_dota_hero_spectre extends Hero {
public CalculateActivityModifiers(activity: GameActivity, ar: string[]): void {
super.CalculateActivityModifiers(activity, ar)
// TODO: probably arcana-related daggers_5, daggers_4 and daggers_3
if (this.MyWearables.some(wearable => wearable.ItemDefinitionIndex === 9662)) {
if (this.Level >= 22) { ar.push("daggers_5") }
} else if (this.Level >= 15) {
ar.push("daggers_4")
} else if (this.Level >= 8) {
ar.push("daggers_3")
}
}
}
}

Check failure on line 18 in wrapper/Objects/Heroes/npc_dota_hero_spectre.ts

View workflow job for this annotation

GitHub Actions / check-types

Declaration or statement expected.

0 comments on commit 58748ce

Please sign in to comment.