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
|
Victim = akTarget
|
||||||
A2_EldritchBlood_Victim.ForceRefTo(Victim)
|
A2_EldritchBlood_Victim.ForceRefTo(Victim)
|
||||||
|
|
||||||
_00E_A2_EldritchBloodParticelAttachVFX.Play(Victim)
|
bIsInPlayerFaction = Victim.IsInFaction(PlayerAlliesFaction)
|
||||||
|
|
||||||
; Strip Victim off all its factions
|
; Strip Victim off all its factions
|
||||||
VictimFactions = Victim.GetFactions(-128, 127)
|
VictimFactions = Victim.GetFactions(-128, 127)
|
||||||
@ -48,7 +48,6 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|||||||
EndWhile
|
EndWhile
|
||||||
|
|
||||||
Victim.AddToFaction(PlayerAlliesFaction)
|
Victim.AddToFaction(PlayerAlliesFaction)
|
||||||
Victim.AddToFaction(EPFaction)
|
|
||||||
|
|
||||||
Victim.SetRelationshipRank(PlayerRef, 3)
|
Victim.SetRelationshipRank(PlayerRef, 3)
|
||||||
|
|
||||||
@ -57,6 +56,8 @@ Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|||||||
|
|
||||||
AdjustDamageMult(Victim)
|
AdjustDamageMult(Victim)
|
||||||
|
|
||||||
|
_00E_A2_EldritchBloodParticelAttachVFX.Play(Victim)
|
||||||
|
|
||||||
Victim.StopCombat()
|
Victim.StopCombat()
|
||||||
|
|
||||||
If A2_EldritchBlood_VictimTarget.GetActorReference()
|
If A2_EldritchBlood_VictimTarget.GetActorReference()
|
||||||
@ -79,9 +80,10 @@ Event OnEffectFinish(Actor akTarget, Actor akCaster)
|
|||||||
_00E_A2_EldritchBloodParticelAttachVFX.Stop(Victim)
|
_00E_A2_EldritchBloodParticelAttachVFX.Stop(Victim)
|
||||||
|
|
||||||
; Restore old factions of Victim
|
; Restore old factions of Victim
|
||||||
Victim.RemoveFromFaction(PlayerAlliesFaction)
|
if ! bIsInPlayerFaction
|
||||||
Victim.RemoveFromFaction(EPFaction)
|
Victim.RemoveFromFaction(PlayerAlliesFaction)
|
||||||
|
endif
|
||||||
|
|
||||||
Int i = 0
|
Int i = 0
|
||||||
While i < VictimFactions.Length
|
While i < VictimFactions.Length
|
||||||
If VictimFactions[i]
|
If VictimFactions[i]
|
||||||
@ -238,4 +240,6 @@ Explosion Property _00E_MAGEldritchShockExplosion Auto
|
|||||||
Explosion Property _00E_MAGEldritchShockExplosion02 Auto
|
Explosion Property _00E_MAGEldritchShockExplosion02 Auto
|
||||||
Explosion Property _00E_MAGEldritchShockExplosion03 Auto
|
Explosion Property _00E_MAGEldritchShockExplosion03 Auto
|
||||||
Explosion Property _00E_A2_SynergyEldritchBloodSkyfallExp 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