mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
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:
parent
4f80023156
commit
00017468cc
129 changed files with 884 additions and 396 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue