Skip to content

Commit cedd5e3

Browse files
committed
Fixed landing source code
1 parent ff71fbe commit cedd5e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/layout/landing.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
<div class="example-item" id="ts-source"><b>// TS Source</b>
3636

3737
function onSpellStart(caster: Unit, targetLocation: Vector): void {
38-
const units = caster.FindUnitsInRadius(event.targetLocation, 500);
39-
const enemies = units.filter(unit => event.caster.isEnemy(unit));
38+
const units = FindUnitsInRadius(targetLocation, 500);
39+
const enemies = units.filter(unit => caster.isEnemy(unit));
4040

4141
for (const enemy of enemies) {
4242
enemy.kill();

0 commit comments

Comments
 (0)