VerifyDisarm
VerifyDisarm(talent, object)
Determines whether a creature could possibly be disarmed.
int VerifyDisarm(
talent tUse,
object oTarget
);
Parameters
tUse
Should be the feat "Disarm" (FEAT_DISARM).
oTarget
The creature that would be the target of a disarm attempt.
Description
Checks that the melee talent being used is Disarm and if so then if the target has a weapon.
This should return TRUE if:
- we are not trying to use disarm
- we are using disarm appropriately
This should return FALSE if:
- we are trying to use disarm on an inappropriate target
- we are using disarm too frequently
Remarks
This has nothing to do with disarming traps.
In Shadows of Undrentide, this function has been moved to X0_I0_MATCH. You can still use it by just including nw_i0_generic, though.
Known Bugs
This isnât really a bug, but if a talent other than the disarm talent is fed to the function, it will return TRUE.
Requirements
#include " x0_i0_match "
Version
1.30
See Also
| constants: |
author: Tom Cassiotis, editors: Lilac Soul, Mistress, additional contributor: Lilac Soul