mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8130] Allow stacking spell 18820 with 1459 and ranks
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
a2d9467428
commit
61443d7583
2 changed files with 13 additions and 4 deletions
|
|
@ -334,7 +334,7 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex)
|
||||||
case 11196: // Recently Bandaged
|
case 11196: // Recently Bandaged
|
||||||
return false;
|
return false;
|
||||||
// some spells have unclear target modes for selection, so just make effect positive
|
// some spells have unclear target modes for selection, so just make effect positive
|
||||||
case 27184:
|
case 27184:
|
||||||
case 27190:
|
case 27190:
|
||||||
case 27191:
|
case 27191:
|
||||||
case 27201:
|
case 27201:
|
||||||
|
|
@ -1126,7 +1126,7 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
|
||||||
if(!spellInfo_1 || !spellInfo_2)
|
if(!spellInfo_1 || !spellInfo_2)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(spellInfo_1->Id == spellId_2)
|
if(spellId_1 == spellId_2)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//I think we don't check this correctly because i need a exception for spell:
|
//I think we don't check this correctly because i need a exception for spell:
|
||||||
|
|
@ -1193,6 +1193,11 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SPELLFAMILY_MAGE:
|
||||||
|
// Arcane Intellect and Insight
|
||||||
|
if( spellInfo_2->SpellIconID == 125 && spellInfo_1->Id == 18820 )
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
case SPELLFAMILY_WARRIOR:
|
case SPELLFAMILY_WARRIOR:
|
||||||
{
|
{
|
||||||
// Scroll of Protection and Defensive Stance (multi-family check)
|
// Scroll of Protection and Defensive Stance (multi-family check)
|
||||||
|
|
@ -1274,6 +1279,10 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
|
||||||
if( spellInfo_1->Id == 11129 && spellInfo_2->SpellIconID == 33 && spellInfo_2->SpellVisual[0] == 321 )
|
if( spellInfo_1->Id == 11129 && spellInfo_2->SpellIconID == 33 && spellInfo_2->SpellVisual[0] == 321 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Arcane Intellect and Insight
|
||||||
|
if( spellInfo_1->SpellIconID == 125 && spellInfo_2->Id == 18820 )
|
||||||
|
return false;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_WARLOCK:
|
case SPELLFAMILY_WARLOCK:
|
||||||
if( spellInfo_2->SpellFamilyName == SPELLFAMILY_WARLOCK )
|
if( spellInfo_2->SpellFamilyName == SPELLFAMILY_WARLOCK )
|
||||||
|
|
@ -2610,7 +2619,7 @@ SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spell
|
||||||
// Try search in next group
|
// Try search in next group
|
||||||
groupEntry = sAreaGroupStore.LookupEntry(groupEntry->nextGroup);
|
groupEntry = sAreaGroupStore.LookupEntry(groupEntry->nextGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!found)
|
if(!found)
|
||||||
return SPELL_FAILED_INCORRECT_AREA;
|
return SPELL_FAILED_INCORRECT_AREA;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8129"
|
#define REVISION_NR "8130"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue