mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-19 18:14:44 +00:00
generator no longer exclusively cares about projectile-caused damage at the end of tis life, and will recognize boomer damage
This commit is contained in:
parent
bd01fd1695
commit
2568b66a80
|
|
@ -89,7 +89,7 @@ class GeneratorControl(gen: Generator)
|
|||
//TODO this only works with projectiles right now!
|
||||
val zone = gen.Zone
|
||||
gen.Health = 0
|
||||
super.DestructionAwareness(gen, gen.LastShot.get)
|
||||
super.DestructionAwareness(gen, gen.LastDamage.get)
|
||||
GeneratorControl.UpdateOwner(gen, Some(GeneratorControl.Event.Destroyed))
|
||||
//kaboom
|
||||
zone.AvatarEvents ! AvatarServiceMessage(
|
||||
|
|
@ -128,7 +128,7 @@ class GeneratorControl(gen: Generator)
|
|||
case GeneratorControl.Destabilized() =>
|
||||
//if the generator is destabilized but has no ntu, it will not explode
|
||||
gen.Health = 0
|
||||
super.DestructionAwareness(gen, gen.LastShot.get)
|
||||
super.DestructionAwareness(gen, gen.LastDamage.get)
|
||||
queuedExplosion.cancel()
|
||||
queuedExplosion = Default.Cancellable
|
||||
imminentExplosion = false
|
||||
|
|
|
|||
Loading…
Reference in a new issue