Add AttackRequirementDSL and small changes to CombatSpellDSL

This commit is contained in:
Steve Soltys
2016-01-29 15:47:22 -05:00
committed by Gary Tierney
parent ec248a185b
commit 682e48bdc8
4 changed files with 116 additions and 25 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class MagicAttack < BaseAttack
SPEED = 5
def initialize(spell)
super(animation: spell.animation, graphic: spell.graphic, speed: SPEED, range: MAX_DISTANCE)
super(animation: spell.animation, graphic: spell.graphic, requirements: spell.requirements, speed: SPEED, range: MAX_DISTANCE)
@damage = spell.damage
@hit_graphic = spell.hit_graphic