Do not remove Entropic Blood target from PlayerAlliesFaction if it was the member before
This commit is contained in:
parent
29e0451d09
commit
c6b34691a8
Binary file not shown.
@ -31,7 +31,7 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
Victim = akTarget
|
||||
A2_EldritchBlood_Victim.ForceRefTo(Victim)
|
||||
|
||||
_00E_A2_EldritchBloodParticelAttachVFX.Play(Victim)
|
||||
bIsInPlayerFaction = Victim.IsInFaction(PlayerAlliesFaction)
|
||||
|
||||
; Strip Victim off all its factions
|
||||
VictimFactions = Victim.GetFactions(-128, 127)
|
||||
@ -48,7 +48,6 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
EndWhile
|
||||
|
||||
Victim.AddToFaction(PlayerAlliesFaction)
|
||||
Victim.AddToFaction(EPFaction)
|
||||
|
||||
Victim.SetRelationshipRank(PlayerRef, 3)
|
||||
|
||||
@ -57,6 +56,8 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
||||
|
||||
AdjustDamageMult(Victim)
|
||||
|
||||
_00E_A2_EldritchBloodParticelAttachVFX.Play(Victim)
|
||||
|
||||
Victim.StopCombat()
|
||||
|
||||
If A2_EldritchBlood_VictimTarget.GetActorReference()
|
||||
@ -79,9 +80,10 @@ Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
||||
_00E_A2_EldritchBloodParticelAttachVFX.Stop(Victim)
|
||||
|
||||
; Restore old factions of Victim
|
||||
Victim.RemoveFromFaction(PlayerAlliesFaction)
|
||||
Victim.RemoveFromFaction(EPFaction)
|
||||
|
||||
if ! bIsInPlayerFaction
|
||||
Victim.RemoveFromFaction(PlayerAlliesFaction)
|
||||
endif
|
||||
|
||||
Int i = 0
|
||||
While i < VictimFactions.Length
|
||||
If VictimFactions[i]
|
||||
@ -238,4 +240,6 @@ Explosion Property _00E_MAGEldritchShockExplosion Auto
|
||||
Explosion Property _00E_MAGEldritchShockExplosion02 Auto
|
||||
Explosion Property _00E_MAGEldritchShockExplosion03 Auto
|
||||
Explosion Property _00E_A2_SynergyEldritchBloodSkyfallExp Auto
|
||||
Explosion Property _00E_FS_MAGGoreExplosion Auto
|
||||
Explosion Property _00E_FS_MAGGoreExplosion Auto
|
||||
|
||||
bool bIsInPlayerFaction
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user