Lua DealDamage

From ArcEmu-Wiki
Jump to: navigation, search

Description

Deals the designed amount of damage with the spell chosen to the target specified. This will show up in the combat log.
Please note that DealDamage ignores cast times.

Usage/Example

function NPC_Combat(pUnit, Event)
    local Target = pUnit:GetRandomPlayer(0)
    if (Target:IsAlive()) then
        pUnit:DealDamage(Target, 100000, 5)
    end
end
Personal tools