|
|
|
|
|
PlaceObj('CharacterEffectCompositeDef', { |
|
'Group', "System", |
|
'Id', "Berserk", |
|
'SortKey', 100, |
|
'Comment', "morale effect", |
|
'object_class', "CharacterEffect", |
|
'Conditions', { |
|
PlaceObj('CombatIsActive', {}), |
|
}, |
|
'DisplayName', T(420777563903, "Berserk"), |
|
'Description', T(392582028996, "Uncontrollable. Recklessly attacks nearby enemies."), |
|
'AddEffectText', T(473269787540, "<em><DisplayName></em> went Berserk"), |
|
'RemoveEffectText', T(463610360293, "<em><DisplayName></em> is no longer Berserk"), |
|
'OnAdded', function (self, obj) |
|
obj:RemoveStatusEffect("Panicked") |
|
obj:InterruptPreparedAttack() |
|
if g_Teams[g_CurrentTeam] == obj.team then |
|
ScheduleMoraleActions() |
|
end |
|
end, |
|
'lifetime', "Until End of Next Turn", |
|
'Icon', "UI/Hud/Status effects/rage", |
|
'RemoveOnEndCombat', true, |
|
'Shown', true, |
|
'HasFloatingText', true, |
|
}) |
|
|
|
|