mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 06:24:38 +02:00
Combat fixes
Add actor update flag for hotbar to send hotbar changes all at once. Add script for equipping all actions for a class/job. Fix multiple script errors. Fix multiple status flag errors Fix battle command db errors Fix error in spawnnpc and yolo.
This commit is contained in:
parent
a92ece58c1
commit
3104478263
20 changed files with 149 additions and 48 deletions
|
@ -1,8 +1,18 @@
|
|||
require("modifiers")
|
||||
require("battleutils")
|
||||
|
||||
function onMagicCast(caster, effect, skill)
|
||||
skill.aoeType = TargetFindAOEType.Circle;
|
||||
skill.aoeRange = 15;
|
||||
skill.validTarget = 31
|
||||
end
|
||||
--Cure, Cura, Regen, Esuna, Enhancing spells (Hardcoded as Stoneskin and Sanguine since we dont have a good way to check what's an enhancing spell)
|
||||
supportedSpells = [27346, 27347, 27358, 27357, 27350, 27307]
|
||||
|
||||
function onMagicCast(effect, caster, skill)
|
||||
if supportedSpells[skill.id] then
|
||||
skill.aoeType = TargetFindAOEType.Circle;
|
||||
skill.aoeRange = 15;
|
||||
end
|
||||
end
|
||||
|
||||
function onCommandFinish(effect, owner, skill, actionContainer)
|
||||
if supportedSpells[skill.id] then
|
||||
owner.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
|
||||
end
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue