# Copyright (c) 1997 Cabochon Technologies, Inc. All rights reserved. """ Creates a bolt of fire. Author: rhialto """ from wyvern.lib.classes.magic import BoltSpell from wyvern.lib.properties import AnimationParams class firebolt(BoltSpell): def initialize(self): self.setDefaultImage('spells/fireball/fire') self.setProperty('anima', AnimationParams(3)) self.speed = 200 self.length = 6 self.super__initialize() def start(self): self.setWC() self.super__start() def setWC(self): self.setIntProperty('wc-fire', 5 + self.getLevel(self.FIRE)) |