Ejemplo n.º 1
0
        public SpellInfo(RichTextBox rtb, SpellEntry spell)
        {
            this.rtb   = rtb;
            this.spell = spell;

            // cache dbc data to avoid multiple searching
            this.classOptions             = spell.SpellClassOptions;
            this.targetRestrictions       = spell.SpellTargetRestrictions;
            this.spellShapeshift          = spell.SpellShapeshift;
            this.spellCategories          = spell.SpellCategories;
            this.spellLevels              = spell.SpellLevels;
            this.spellEquippedItems       = spell.SpellEquippedItems;
            this.spellAuraOptions         = spell.SpellAuraOptions;
            this.spellCooldowns           = spell.SpellCooldowns;
            this.spellAuraRestrictions    = spell.SpellAuraRestrictions;
            this.spellCastingRequirements = spell.SpellCastingRequirements;
            this.spellInterrupts          = spell.SpellInterrupts;
            this.spellPower = spell.SpellPower;

            ProcInfo.SpellProc = spell;

            ViewSpellInfo();
        }
Ejemplo n.º 2
0
        public SpellInfo(RichTextBox rtb, SpellEntry spell)
        {
            this.rtb = rtb;
            this.spell = spell;

            // cache dbc data to avoid multiple searching
            this.classOptions = spell.SpellClassOptions;
            this.targetRestrictions = spell.SpellTargetRestrictions;
            this.spellShapeshift = spell.SpellShapeshift;
            this.spellCategories = spell.SpellCategories;
            this.spellLevels = spell.SpellLevels;
            this.spellEquippedItems = spell.SpellEquippedItems;
            this.spellAuraOptions = spell.SpellAuraOptions;
            this.spellCooldowns = spell.SpellCooldowns;
            this.spellAuraRestrictions = spell.SpellAuraRestrictions;
            this.spellCastingRequirements = spell.SpellCastingRequirements;
            this.spellInterrupts = spell.SpellInterrupts;
            this.spellPower = spell.SpellPower;

            ProcInfo.SpellProc = spell;

            ViewSpellInfo();
        }