WoW:API IsPassiveSpell
Jump to navigation
Jump to search
if ( IsSpellPassive(spellID,spellbooktabnum) )...
Returns whether the icon in your spellbook is a Passive ability (not necessarily a spell). (And actually noted as so in spellbook)
- Arguments
- (spellID, spellbooktabnum??)
- spellID
- The slot number in your spellbook. Each page has 12 slots and the numbering continues throughout your entire spellbook, ignoring empty slots.
- spellbooktabnum??
- Not sure, had no effect whatsoever on results
- Returns
- 1 or nil
- 1
- The "spell" is Passive
- nil
- The "spell" is not Passive
- Example
message(GetSpellTexture(1,1234567890));
- Result
message box with a "1" or empty, depending on whether or not the very first icon in your spellbook is passive.
Note: The second number actually has no significance on the output. (1,1) is the first slot and so is (1,92183098). (Although, it may be used ONLY if you have pet spells..?)
- Details
- With my Human Paladin, here are the "spells" I found to be Passive:
- Block (Passive)
- Diplomacy (Racial Passive)
- Dodge (Passive)
- Mace Specialization (Passive)
- Parry (Passive)
- Sword Specialization (Passive)
- The Human Spirit (Racial Passive)