
- The player and enemy were using a cast progress variable that was part of the spell object, so they were altering it at the same time
17 lines
394 B
GDScript
17 lines
394 B
GDScript
extends Resource
|
|
|
|
class_name Spell
|
|
|
|
@export var icon: CompressedTexture2D
|
|
@export var name: String
|
|
@export var description: String
|
|
@export var animation: String
|
|
|
|
@export var damage: float = 1
|
|
@export var backfireStrength: float = 1
|
|
@export var castCombo: Array[String]
|
|
@export var element: Data.Element
|
|
@export var stunning: bool
|
|
@export var timeout: float = 10
|
|
@export var cooldown: float = 1
|