Changeset 87
- Timestamp:
- 11/19/08 13:33:03 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellMgr.cpp
r79 r87 1034 1034 return false; 1035 1035 1036 if(spellInfo_1->Id == spellId_2) 1037 return false; 1036 if(spellInfo_1->Id == spellId_2) //checked before 1037 return false; 1038 1039 if(spellInfo_1->SpellFamilyName && spellInfo_1->SpellFamilyName == spellInfo_2->SpellFamilyName) //resurrection sickness 1040 { 1041 if(spellInfo_1->SpellFamilyFlags == spellInfo_2->SpellFamilyFlags) 1042 return true; 1043 //Corruption & Seed of corruption 1044 if(spellInfo_1->SpellFamilyName == SPELLFAMILY_WARLOCK) 1045 if( spellInfo_1->SpellIconID == 313 && spellInfo_2->SpellIconID == 1932 || 1046 spellInfo_2->SpellIconID == 313 && spellInfo_1->SpellIconID == 1932 ) 1047 if(spellInfo_1->SpellVisual != 0 && spellInfo_2->SpellVisual != 0) 1048 return true; // can't be stacked 1049 } 1038 1050 1039 1051 //I think we don't check this correctly because i need a exception for spell: 1040 1052 //72,11327,18461...(called from 1856,1857...) Call Aura 16,31, after trigger another spell who call aura 77 and 77 remove 16 and 31, this should not happen. 1041 if(spellInfo_2->SpellFamilyFlags == 2048)1042 return false;1053 //if(spellInfo_2->SpellFamilyFlags == 2048) 1054 // return false; 1043 1055 1044 1056 // Resurrection sickness 1045 if((spellInfo_1->Id == SPELL_ID_PASSIVE_RESURRECTION_SICKNESS) != (spellInfo_2->Id==SPELL_ID_PASSIVE_RESURRECTION_SICKNESS))1046 return false;1057 //if((spellInfo_1->Id == SPELL_ID_PASSIVE_RESURRECTION_SICKNESS) != (spellInfo_2->Id==SPELL_ID_PASSIVE_RESURRECTION_SICKNESS)) 1058 // return false; 1047 1059 1048 1060 // Specific spell family spells 1049 switch(spellInfo_1->SpellFamilyName)1061 /*switch(spellInfo_1->SpellFamilyName) 1050 1062 { 1051 1063 case SPELLFAMILY_GENERIC: … … 1347 1359 1348 1360 if (IsRankSpellDueToSpell(spellInfo_1, spellId_2)) 1349 return true; 1350 1351 if (spellInfo_1->SpellIconID != spellInfo_2->SpellIconID ||1352 !spellInfo_1->SpellIconID)1361 return true;*/ 1362 1363 if (spellInfo_1->SpellIconID != spellInfo_2->SpellIconID 1364 || !spellInfo_1->SpellIconID) 1353 1365 return false; 1354 1366