mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Refactor StatusEffectContainer to better handle messages using
CommandResultContainer. Alter Modifiers to be the same as ParamNames. Add LoseOnClassChange flag for status effects. Add a few missing status effects. Fix EndTime for stance status effects to stop icon from blinking.
This commit is contained in:
parent
cc07e1f453
commit
26ef649a6c
17 changed files with 586 additions and 381 deletions
23
data/scripts/effects/raging_strike2.lua
Normal file
23
data/scripts/effects/raging_strike2.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
require("modifiers")
|
||||
require("battleutils")
|
||||
|
||||
|
||||
function onCommandStart(effect, attacker, command, actionContainer)
|
||||
--Random guess
|
||||
command.enmityModifier += 0.25;
|
||||
end
|
||||
|
||||
function onHit(effect, attacker, defender, action, actionContainer)
|
||||
if skill.id == 27259 then
|
||||
--Effect stacks up to 3 times
|
||||
if effect.GetTier() < 3 then
|
||||
effect.SetTier(effect.GetTier() + 1);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onMiss(effect, attacker, defender, action, actionContainer)
|
||||
if skill.id == 27259 then
|
||||
effect.SetTier(0);
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue