UNPKG

warscript

Version:

A typescript library for Warcraft III using Warpack.

39 lines (38 loc) 1.75 kB
/** @noSelfInFile */ import { BuffPolarity } from "../../object-data/auxiliary/buff-polarity"; import { BuffResistanceType } from "../../object-data/auxiliary/buff-resistance-type"; declare module "../unit" { interface Unit { hasBuff(buffTypeId: number): boolean; } } declare module "../unit" { interface Unit { removeBuff(buffTypeId: number): boolean; } } declare module "../unit" { interface Unit { /** * @param polarity The polarity of buffs to count. Default `undefined`. * @param resistanceType The resistance type of buffs to count. Default `undefined`. * @param includeExpirationTimers Whether to include expiration timer buffs. Default `true`. * @param includeAuras Whether to remove aura buffs. Default `true`. * @param autoDispel Unknown. Default `false`. */ countBuffs(polarity?: BuffPolarity, resistanceType?: BuffResistanceType, includeExpirationTimers?: boolean, includeAuras?: boolean, autoDispel?: boolean): number; } } declare module "../unit" { interface Unit { /** * @param polarity The polarity of buffs to remove. Default `undefined`. * @param resistanceType The resistance type of buffs to remove. Default `undefined`. * @param includeExpirationTimers Whether to include expiration timer buffs. Default `true`. * @param includeAuras Whether to remove aura buffs. Default `true`. * @param autoDispel Unknown. Default `false`. */ removeBuffs(polarity?: BuffPolarity, resistanceType?: BuffResistanceType, includeExpirationTimers?: boolean, includeAuras?: boolean, autoDispel?: boolean): void; removeBuffs(buffTypeIds: number[]): void; } }