Changeset 85 for trunk/src/game/Spell.cpp
- Timestamp:
- 11/19/08 13:32:53 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Spell.cpp
r69 r85 2033 2033 } 2034 2034 2035 if(m_caster->GetTypeId() == TYPEID_PLAYER || (m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->isPet())) 2036 { 2037 if(objmgr.IsPlayerSpellDisabled(m_spellInfo->Id)) 2038 { 2039 SendCastResult(SPELL_FAILED_SPELL_UNAVAILABLE); 2040 finish(false); 2041 return; 2042 } 2043 } 2044 else 2045 { 2046 if(objmgr.IsCreatureSpellDisabled(m_spellInfo->Id)) 2047 { 2048 finish(false); 2049 return; 2050 } 2051 } 2052 2035 2053 // Fill cost data 2036 2054 m_powerCost = CalculatePowerCost();