mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 15:34:42 +00:00
commit
3d3b3eceae
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ class GeneratorControl(gen: Generator)
|
||||||
//TODO this only works with projectiles right now!
|
//TODO this only works with projectiles right now!
|
||||||
val zone = gen.Zone
|
val zone = gen.Zone
|
||||||
gen.Health = 0
|
gen.Health = 0
|
||||||
super.DestructionAwareness(gen, gen.LastShot.get)
|
super.DestructionAwareness(gen, gen.LastDamage.get)
|
||||||
GeneratorControl.UpdateOwner(gen, Some(GeneratorControl.Event.Destroyed))
|
GeneratorControl.UpdateOwner(gen, Some(GeneratorControl.Event.Destroyed))
|
||||||
//kaboom
|
//kaboom
|
||||||
zone.AvatarEvents ! AvatarServiceMessage(
|
zone.AvatarEvents ! AvatarServiceMessage(
|
||||||
|
|
@ -128,7 +128,7 @@ class GeneratorControl(gen: Generator)
|
||||||
case GeneratorControl.Destabilized() =>
|
case GeneratorControl.Destabilized() =>
|
||||||
//if the generator is destabilized but has no ntu, it will not explode
|
//if the generator is destabilized but has no ntu, it will not explode
|
||||||
gen.Health = 0
|
gen.Health = 0
|
||||||
super.DestructionAwareness(gen, gen.LastShot.get)
|
super.DestructionAwareness(gen, gen.LastDamage.get)
|
||||||
queuedExplosion.cancel()
|
queuedExplosion.cancel()
|
||||||
queuedExplosion = Default.Cancellable
|
queuedExplosion = Default.Cancellable
|
||||||
imminentExplosion = false
|
imminentExplosion = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue