Fixed OnUse StatusEffects not being applied when a turret is launched. Closes #975
This commit is contained in:
@@ -219,6 +219,10 @@ namespace Barotrauma.Items.Components
|
||||
projectile.FindHull();
|
||||
projectile.Submarine = projectile.body.Submarine;
|
||||
|
||||
LaunchProjSpecific();
|
||||
|
||||
ApplyStatusEffects(ActionType.OnUse, 1.0f, user);
|
||||
|
||||
Projectile projectileComponent = projectile.GetComponent<Projectile>();
|
||||
if (projectileComponent != null)
|
||||
{
|
||||
@@ -234,6 +238,8 @@ namespace Barotrauma.Items.Components
|
||||
}
|
||||
}
|
||||
|
||||
partial void LaunchProjSpecific();
|
||||
|
||||
public override bool AIOperate(float deltaTime, Character character, AIObjectiveOperateItem objective)
|
||||
{
|
||||
var projectiles = GetLoadedProjectiles();
|
||||
|
||||
Reference in New Issue
Block a user