Commit aeac376c authored by brabox's avatar brabox

Troll rampage fix (pt. 2)

This is a continuation of: 838ffc47

Fixes:
- Mountain troll rampage removed
- Attributemodifier doesn't make invincible, just insanely tanky (=negligible PP gain when attacking rampage trolls)
parent 0169cfcb
......@@ -8658,7 +8658,8 @@ End
ModifierList CaveTrollRampage
Category = WEAPON
Modifier = INVULNERABLE 0% FORCE CRUSH SLASH STRUCTURAL HEALING WATER PENALTY FALLING TOPPLING REFLECTED PASSENGER CHOP URUK FLY_INTO LOGICAL_FIRE CAVALRY CAVALRY_RANGED POISON FROST PIERCE SPECIALIST FLAME HERO MAGIC SIEGE HERO_RANGED
Modifier = HEALTH_MULT 10000%
Modifier = ARMOR 400%
Duration = 5000
ModelCondition = WEAPONSET_RAMPAGE
End
......
......@@ -699,6 +699,8 @@ Object MordorAttackTroll
DoHealthCheck = No
DelayedDeathTime = 5000
CanRespawn = No
ImmortalUntilDeathTime = No ;,;
ReallyDamagedAttributeModifier = CaveTrollRampage ;,;
End
Behavior LifetimeUpdate LifetimeTag
......
......@@ -1192,10 +1192,12 @@ Object MordorMountainTroll
CheerRadius = EMOTION_CHEER_RADIUS
MaxHealth = MORDOR_TROLL_HEALTH
MaxHealthDamaged = MORDOR_TROLL_HEALTH_DAMAGED
MaxHealthReallyDamaged = MORDOR_TROLL_HEALTH_RAMPAGE_DAMAGED
DoHealthCheck = No ; Don't want to get the delayed death behaviour when we die normally.
DelayedDeathTime = 5000
CanRespawn = No ; Unit can't get revived.
;,; No longer necessary if the Mountain Troll can no longer rampage.
; MaxHealthReallyDamaged = MORDOR_TROLL_HEALTH_RAMPAGE_DAMAGED
End
Behavior LifetimeUpdate LifetimeTag
......@@ -1208,7 +1210,7 @@ Object MordorMountainTroll
Behavior = AIUpdateInterface ModuleTag_03
AutoAcquireEnemiesWhenIdle = Yes ATTACK_BUILDINGS
AILuaEventsList = TrollFunctions
AILuaEventsList = MountainTrollFunctions
RampageTime = 4470
AttackPriority = AttackPriority_Cavalry
End
......
......@@ -124,7 +124,13 @@
<EventHandler EventName="OnGenericEvent" ScriptFunctionName="OnTrollGenericEvent" DebugSingleStep="false"/>
<EventHandler EventName="BeTerrified" ScriptFunctionName="BecomeTerrified" DebugSingleStep="false"/>
</EventList>
<EventList Name="MountainTrollFunctions" Inherit="BaseScriptFunctions">
<EventHandler EventName="OnCreated" ScriptFunctionName="OnTrollCreated" DebugSingleStep="false"/>
<EventHandler EventName="OnGenericEvent" ScriptFunctionName="OnTrollGenericEvent" DebugSingleStep="false"/>
<EventHandler EventName="BeTerrified" ScriptFunctionName="BecomeTerrified" DebugSingleStep="false"/>
</EventList>
<EventList Name="CreepTrollFunctions" Inherit="BaseScriptFunctions">
<EventHandler EventName="ReallyDamaged" ScriptFunctionName="GoIntoRampage" DebugSingleStep="false"/>
<EventHandler EventName="OnCreated" ScriptFunctionName="OnCreepTrollCreated" DebugSingleStep="false"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment