Class CastSpellOnFoe
Queues a spell to be cast on a Foe resource.
Can queue multiple spells at once or at different stages of quest.
If the Foe has not been spawned: All spells currently in queue will be cast on Foe the moment they spawn.
If the Foe has been spawned: The next spell(s) added to queue will be cast on spawned Foes on next quest tick.
This allows quest author to cast spells on Foe both before and after spawn or at different stages of quest (e.g. after foe injured).
Notes:
-As spells have durations recommend casting spells on "place foe" dungeon foes after being injured or spell will likely expire by the time player locates foe.
-For "create foe" foes spell can be queued at any time as spell is cast when foe is directly spawned near player.
Inheritance
CastSpellOnFoe
Assembly: Assembly-CSharp.dll
Syntax
public class CastSpellOnFoe : ActionTemplate, IDisposable, IQuestAction
Constructors
|
Improve this Doc
View Source
CastSpellOnFoe(Quest)
Declaration
public CastSpellOnFoe(Quest parentQuest)
Parameters
Type |
Name |
Description |
Quest |
parentQuest |
|
Properties
|
Improve this Doc
View Source
Pattern
Declaration
public override string Pattern { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
CreateNew(String, Quest)
Declaration
public override IQuestAction CreateNew(string source, Quest parentQuest)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetSaveData()
Declaration
public override object GetSaveData()
Returns
Overrides
|
Improve this Doc
View Source
RestoreSaveData(Object)
Declaration
public override void RestoreSaveData(object dataIn)
Parameters
Type |
Name |
Description |
Object |
dataIn |
|
Overrides
|
Improve this Doc
View Source
Update(Task)
Declaration
public override void Update(Task caller)
Parameters
Type |
Name |
Description |
Task |
caller |
|
Overrides
Implements