Click or drag to resize
WoWSpell Class
A WoW spell.
Inheritance Hierarchy
SystemObject
  Styx.WoWInternalsWoWSpell

Namespace: Styx.WoWInternals
Assembly: Styx (in Styx.dll) Version: 3.0.1160.0 (3.0.1160)
Syntax
C#
public class WoWSpell : IEquatable<WoWSpell>

The WoWSpell type exposes the following members.

Properties
  NameDescription
Public propertyAttributes
Gets the attributes of this spell.
Public propertyAttributesEx
Gets the extended attributes of this spell.
Public propertyAttributesEx2
Gets the extended attributes 2 of this spell.
Public propertyAttributesEx3
Gets the extended attributes 3 of this spell.
Public propertyAttributesEx4
Gets the extended attributes 4 of this spell.
Public propertyAttributesEx5
Gets the extended attributes 5 of this spell.
Public propertyAttributesEx6
Gets the extended attributes 6 of this spell.
Public propertyAttributesEx7
Gets the extended attributes 7 of this spell.
Public propertyAttributesEx8
Gets the extended attributes 8 of this spell.
Public propertyAuraDescription
Returns the aura description of this spell, this string is localized.
Public propertyBaseCooldown
Returns the base cooldown amount.
Public propertyBaseDuration
Returns the base duration of this spell or it's effect, eg; the duration of dots, buffs etc...
Public propertyCanCast
Returns true if this is a usable spell. This does not check cooldown. To check if this spell can be cast right now, see CanCast(WoWSpell) and similar overloads.
Public propertyCastTime
Returns the casttime of this spell.
Public propertyCategory
Returns the category id of this spell.
Public propertyCooldown
Returns true if this spell is on cooldown.
Public propertyCooldownTimeLeft
Gets the cooldown time left.
Public propertyCreatesItemId
Returns the item ID created by this spell.
Public propertyDescription
Returns the description of this spell, this string is localized.
Public propertyDispelType
Returns the DispelType of this spell.
Public propertyDurationPerLevel
Returns the duration per level multiplier if any otherwise 0.
Public propertyHasRange
Returns true if this is a ranged spell.
Public propertyIcon
Gets the ingame icon of this WoWSpell
Public propertyId
Returns the id of this spell.
Public propertyInternalInfo
Returns the internal cached dbc info used for this spell.
Public propertyIsChanneled
Gets a bool that indicates whether this spell is channeled.
Public propertyIsHealingSpell
Gets a value indicating whether this spell is healing spell.
Public propertyIsMeleeSpell
Gets a value indicating whether this object is melee spell (can only be cast within melee range).
Public propertyIsSelfOnlySpell
Gets a value indicating whether this object is self buff spell (can only cast it on yourself).
Public propertyIsValid
Returns true if this is a valid spell.
Public propertyLocalizedName
Returns the localized name of this spell.
Public propertyMaxDuration
Rerturn the maxduration of this spell.
Public propertyMaxRange
Returns the maxrange of this spell.
Public propertyMaxTargets
Returns the number of max targets for this spell, usally only applies to dots. eg; 'Shadow Word: Pain'.
Public propertyMechanic
Returns the Mechanic of this spell.
Public propertyMinRange
Returns the minrange of this spell.
Public propertyName
Returns the English name of this spell.
Public propertyNameSubText
Returns the description of this spell, this string is localized.
Public propertyNumSpellEffects Obsolete.
Returns the number of spell effects this spell has.
Public propertySchool
Returns the WoWSpellSchool of this item. eg; 'Shadow', 'Holy' etc...
Public propertySpellDescriptionVariableId
Gets the spell description variable id of this spell.
Public propertySpellEffect1 Obsolete.
Returns the #1 effect of this spell.
Public propertySpellEffect2 Obsolete.
Returns the #2 effect of this spell.
Public propertySpellEffect3 Obsolete.
Returns the #3 effect of this spell.
Public propertySpellEffects
Returns all spell effects of this spell.
Public propertyTargetType
Returns the type of target this spell can usually be cast on.
Top
Methods
  NameDescription
Public methodCast
Casts this spell.
Public methodEquals(Object) (Overrides ObjectEquals(Object).)
Public methodEquals(WoWSpell)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromId
Converts Id to WoWSpell.
Public methodGetAttributes
Gets the attribute flags at a specified index.
Public methodGetChargeInfo
Gets information about this spell's charges.
Public methodGetDetailedPowerCosts
Gets detailed power costs for this spell.
Public methodGetDetailedPowerCosts(WoWUnit)
Gets detailed power costs for this spell.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetPowerCost
Gets the cost of this spell in the specified power type.
Public methodGetPowerCostPerSecond
Gets the cost of this spell per second in the specified power type.
Public methodGetSpellEffect Obsolete.
Gets a spell effect for this spell.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAttribute(SpellAttributes)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx2)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx3)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx4)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx5)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx6)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx7)
Checks if this spell has the specified attribute.
Public methodHasAttribute(SpellAttributesEx8)
Checks if this spell has the specified attribute.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Top
Extension Methods
  NameDescription
Public Extension MethodActualMaxRange
Max range of a spell on unit. Calculates hitbox
(Defined by ScriptHelpers.)
Public Extension MethodActualMinRange
Min range of a spell on unit. Calculates hitbox.
(Defined by ScriptHelpers.)
Top
See Also