diff --git a/X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc b/X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc new file mode 100644 index 000000000..287f40b4f --- /dev/null +++ b/X2WOTCCommunityHighlander/Src/XComGame/Classes/X2Effect_Pillar.uc @@ -0,0 +1,16 @@ +class X2Effect_Pillar extends X2Effect_SpawnDestructible; + +function int GetStartingNumTurns(const out EffectAppliedData ApplyEffectParameters) +{ + local XComGameState_Unit SourceUnit; + + SourceUnit = XComGameState_Unit(`XCOMHISTORY.GetGameStateForObjectID(ApplyEffectParameters.SourceStateObjectRef.ObjectID)); + return SourceUnit.GetTemplarFocusLevel(); +} + +DefaultProperties +{ + EffectName = "Pillar" + DuplicateResponse = eDupe_Allow + bDestroyOnRemoval = true +} \ No newline at end of file diff --git a/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj b/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj index 25d28fa8a..96e78a558 100644 --- a/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj +++ b/X2WOTCCommunityHighlander/X2WOTCCommunityHighlander.x2proj @@ -583,6 +583,9 @@ Content + + Content + Content