GetLastAttackMode(object)

Determine a creature's combat mode.

int GetLastAttackMode(
    object oCreature = OBJECT_SELF
);

Parameters

oCreature

Creature which is attacking. (Default: OBJECT_SELF)


Description

Returns the attack mode (COMBAT_MODE_*) of oCreature's last attack. Returns COMBAT_MODE_INVALID if the creature is not in combat, or if no special combat mode was used in the last attack.



Remarks

This only works when oCreature is in combat.


Version

1.22

See Also

categories: Combat Information Functions
constants: COMBAT_MODE_* Constants


 author: Jason Harris, editor: Kristian Markon
 Send comments on this topic.