mirror of
https://github.com/otland/forgottenserver
synced 2026-08-15 16:32:07 -04:00
21 lines
563 B
Lua
21 lines
563 B
Lua
local area = createCombatArea({
|
|
{1, 1, 1},
|
|
{1, 3, 1},
|
|
{1, 1, 1}
|
|
})
|
|
|
|
local combat = Combat()
|
|
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
|
|
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
|
|
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BURSTARROW)
|
|
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
|
|
combat:setFormula(COMBAT_FORMULA_SKILL, 0, 0, 1, 0)
|
|
combat:setArea(area)
|
|
|
|
function onUseWeapon(player, variant)
|
|
if player:getSkull() == SKULL_BLACK then
|
|
return false
|
|
end
|
|
|
|
return combat:execute(player, variant)
|
|
end
|