fixed the parity between air and land enemies. +added a lot of new cards
This commit is contained in:
@@ -2,17 +2,9 @@ extends StatusEffect
|
||||
class_name StatusSticky
|
||||
|
||||
|
||||
func on_attached():
|
||||
super.on_attached()
|
||||
affected.movement_speed = affected.stats.movement_speed * (1.0 - stats.potency)
|
||||
func on_attached(affected, existing_effects):
|
||||
affected.movement_speed_penalty -= stats.potency
|
||||
|
||||
|
||||
func on_removed():
|
||||
super.on_removed()
|
||||
var siblings = get_parent().get_children()
|
||||
var stickies = 0
|
||||
for node in siblings:
|
||||
if node is StatusSticky:
|
||||
stickies += 1
|
||||
if stickies == 1:
|
||||
affected.movement_speed = affected.stats.movement_speed
|
||||
func on_removed(affected, existing_effects):
|
||||
affected.movement_speed_penalty += stats.potency
|
||||
|
||||
Reference in New Issue
Block a user