GetLastAttackType(object)

Determine the attack type of a creature's last attack.

int GetLastAttackType(
    object oCreature = OBJECT_SELF
);

Parameters

oCreature

Creature which is attacking. (Default: OBJECT_SELF)


Description

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



Remarks

This only works when oCreature is in combat.


Version

1.22

See Also

categories: Combat Information Functions
constants: SPECIAL_ATTACK_* Constants


 author: Jason Harris, editor: Kristian Markon