1
0
EQ2Emu/docs/lua_functions/LastSpellAttackHit.md
2025-05-25 21:42:32 -04:00

23 lines
541 B
Markdown

### Function: LastSpellAttackHit()
**Description:**
Return's true if the last spell attack was a successful hit.
**Parameters:** None.
**Returns:** True if the last hit was successful otherwise false.
**Example:**
```lua
-- From Spells/AA/NullifyingStaff.lua
function cast(Caster, Target, DmgType, MinVal, MaxVal, CombatMit, Arcane)
SpellDamage(Target, DmgType, MinVal, MaxVal)
--if LastSpellAttackHit() then
--AddSpellBonus(Target, 0, CombatMit)
--end
if LastSpellAttackHit() then
AddSpellBonus(Target, 203, Arcane)
end
```