-
-
Save Underewarrr/a7bff3d053f48955aac24d51a6d37068 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Define function to handle aura effect start | |
function Spell:startEffectAnimation(player, auraEffect) | |
local effect = player:getOutfit() | |
effect.lookAura = auraEffect | |
player:setOutfit(effect) | |
print("Genki Dama effect START, aura id:", auraEffect) | |
end | |
-- Define function to handle aura effect stop | |
function Spell:stopEffectAnimation(player, targetPos) | |
local effect = player:getOutfit() | |
effect.lookAura = 0 | |
player:setOutfit(effect) | |
print("Genki Dama effect STOP") | |
-- Send the distance effect of Genki Dama at the position of the target creature | |
print("Dynamic Genki dama distance effect sent at position:", targetPos.x, targetPos.y, targetPos.z) | |
player:getPosition():sendDistanceEffect(targetPos, 36) | |
-- Apply damage to monsters around the player position | |
-- Modular area range and damage already working for custom atribute spells | |
applyDamageToMonstersAroundPosition(player, targetPos, 1, 10000, 1) -- Random values used to test on real spell min and max need to return from combat spell function. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment