mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04: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:
@@ -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;
|
||||
Reference in New Issue
Block a user