OnProjectileHit(target: CDOTA_BaseNPC, location: Vector): boolean | void {
print('test_ability OnProjectileHit target Name ' + target.GetName());
let damage: ApplyDamageOptions = {
ability: this,
attacker: this.GetCaster(),
damage: 200,
damage_flags: DamageFlag.HPLOSS,
damage_type: DamageTypes.MAGICAL,
victim: target,
};
ApplyDamage(damage);
target.AddNewModifier(this.GetCaster(), this, 'testmodifier', { duration: 1.0 });
}
The above is a segment of code from my ability class. I want to apply a modifier to the target object, so I used the AddNewModifier method. The last parameter of this method is a table object, and currently, I know that 'duration' is effective. Is this considered a default parameter? If so, what are the other default parameters? Can custom parameters be specified here?