wurstscript / WurstStdlib2

WurstScript Standard Library Version 2
Apache License 2.0
55 stars 53 forks source link

Missing natives and some hot docs #402

Closed GetLocalPlayer closed 3 years ago

GetLocalPlayer commented 3 years ago

EventData


    /** Returns `true` if the damage done is done with Unit's attack. */
    static function isAttackDamage() returns bool
        return BlzGetEventIsAttack()

Unit


public function unit.startAbilityCooldown(int abilCode)
    BlzStartUnitAbilityCooldown(this, abilCode, this.getAbilityCooldown(abilCode, this.getAbilityLevel(abilCode) - 1))

public function unit.startAbilityCooldown(int abilCode, real cooldown)
    BlzStartUnitAbilityCooldown(this, abilCode, cooldown)
GetLocalPlayer commented 3 years ago

Changed level param name to more obvious levelIndex

Frotty commented 3 years ago

Sry I missed this somehow, thanks for the PR!