New scripts

New scripts for commands and effects that use the new function
signatures and work with the new statuseffectcontainer
This commit is contained in:
Yogurt 2019-05-29 23:05:40 -07:00
parent 4f80023156
commit 00017468cc
129 changed files with 884 additions and 396 deletions

View file

@ -5,12 +5,10 @@ require("battleutils")
--Traited reduces cooldown by 100%
function onCommandStart(effect, owner, skill, actionContainer)
--Does this apply to auto attacks?
if skill.commandType == CommandType.Weaponskill or skill.commandType == CommandType.Ability or skill.commandType == CommandType.Magic then
if skill.actionType == ActionType.Physical or skill.actionType == ActionType.Magic then
--No idea what the enmity effect is
skill.enmityModifier = skill.enmityModifier * 0.5;
owner.AddTP(effect.GetMagnitude());
if skill.GetCommandType() == CommandType.Weaponskill or skill.GetCommandType() == CommandType.Ability or skill.GetCommandType() == CommandType.Magic then
if skill.GetActionType() == ActionType.Physical or skill.GetActionType() == ActionType.Magic then
skill.enmityModifier = skill.enmityModifier * 0.8;
skill.tpCost = skill.tpCost - effect.GetMagnitude();
end
end
end;