-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStruct Spell Aura Of Redemption.j
More file actions
27 lines (22 loc) · 1.12 KB
/
Copy pathStruct Spell Aura Of Redemption.j
File metadata and controls
27 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/// Knight
library StructSpellsSpellAuraOfRedemption requires Asl, StructGameClasses, StructGameSpell
// TODO Whenever a unit with the buff deals damage it gets the percentage back as mana as well
struct SpellAuraOfRedemption extends Spell
public static constant integer abilityId = 'A0M5'
public static constant integer favouriteAbilityId = 'A0M6'
public static constant integer classSelectionAbilityId = 'A0PR'
public static constant integer classSelectionGrimoireAbilityId = 'A0PS'
public static constant integer maxLevel = 5
public static method create takes Character character returns thistype
local thistype this = thistype.createWithoutTriggers(character, Classes.knight(), Spell.spellTypeNormal, thistype.maxLevel, thistype.abilityId, thistype.favouriteAbilityId)
call this.addGrimoireEntry('A0PR', 'A0PS')
call this.addGrimoireEntry('A0M7', 'A0MC')
call this.addGrimoireEntry('A0M8', 'A0MD')
call this.addGrimoireEntry('A0M9', 'A0ME')
call this.addGrimoireEntry('A0MA', 'A0MF')
call this.addGrimoireEntry('A0MB', 'A0MG')
call this.setIsPassive(true)
return this
endmethod
endstruct
endlibrary