feat(hs): block friendly-fire within the same team
This commit is contained in:
@@ -736,6 +736,15 @@ public class Player : AsyncDisposable, IBucketMapObserver, IAttackable, IAttacke
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ADAMU-CUSTOM: Heykel Savasi -> same-team players cannot damage each other.
|
||||||
|
if (this.CurrentMiniGame is HeykelSavasiContext heykelSavasi
|
||||||
|
&& attacker is Player heykelAttacker
|
||||||
|
&& heykelSavasi.GetTeam(this) != HeykelSavasiTeam.None
|
||||||
|
&& heykelSavasi.GetTeam(this) == heykelSavasi.GetTeam(heykelAttacker))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
var hitInfo = await attacker.CalculateDamageAsync(this, skill, isCombo, damageFactor).ConfigureAwait(false);
|
var hitInfo = await attacker.CalculateDamageAsync(this, skill, isCombo, damageFactor).ConfigureAwait(false);
|
||||||
|
|
||||||
if (skill?.Skill is not { } attackSkill || attackSkill.DamageType != DamageType.Fenrir)
|
if (skill?.Skill is not { } attackSkill || attackSkill.DamageType != DamageType.Fenrir)
|
||||||
|
|||||||
Reference in New Issue
Block a user