summaryrefslogtreecommitdiff
path: root/scripts/Entities/Items/SpellEffectItemActivation.cs
blob: 0734530ab7dcf6d10aea6a58718ad8e2641502d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Godot;
using TheLegendOfGustav.Entities.Actors;
using TheLegendOfGustav.Magic;

/// <summary>
/// Aplica um efeito de feitiço ao usuário.
/// </summary>
[GlobalClass]
public partial class SpellEffectItemActivation : ItemActivation
{
	[Export]
	SpellEffect effect;

	public override bool OnActivation(Player consumer)
	{
		effect.Apply(consumer, consumer);
		return true;
	}
}