GetLastSpellHarmful()

Determines whether the last spell cast was harmful.

int GetLastSpellHarmful();

Description

Use this in a SpellCast script to determine whether the spell was considered harmful.
Returns TRUE if the last spell cast was harmful.



Remarks

Speculation: Returns TRUE if HostileSetting is set to 1 for this particular spell in spells.2da.


Version

1.22

Example

if(GetLastSpellHarmful())
{
    SpeakString("Ouch!");
}
else
{
    SpeakString("Thank you!");
}

See Also

functions: GetLastSpell | GetLastSpellCaster
categories: Get Data from Object Functions | Spells Functions
events: OnSpellCastAt Event


 author: Jochem van 't Hull, editor: Jody Fletcher
 Send comments on this topic.