mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
Add AttackRequirementDSL and small changes to CombatSpellDSL
This commit is contained in:
committed by
Gary Tierney
parent
ec248a185b
commit
682e48bdc8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user