Skip to content

Commit

Permalink
Server: Fix catas turning off Exo's laser
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheneq committed Apr 5, 2023
1 parent 5e99459 commit f45401a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Assembly-CSharp/Passive_Exo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,18 @@ public override void PreGatherResultsForPlayerAction(Ability ability)
{
return;
}
if (ability != null && !(ability is ExoAnchorLaser) && !(ability is ExoShield) && IsAnchored())

AbilityData abilityData = GetComponent<AbilityData>();
if (ability != null
&& !(ability is ExoAnchorLaser)
&& !(ability is ExoShield)
&& IsAnchored()
// custom -- might cata should not turn the laser off
&& !(abilityData != null
&& AbilityData.IsCard(abilityData.GetActionTypeOfAbility(ability))
&& ability.IsFreeAction())
// end custom
)
{
RemoveAnchoredLaser();
}
Expand Down

0 comments on commit f45401a

Please sign in to comment.