mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7745] Fixed gcc warnings.
This commit is contained in:
parent
8d3585f5ee
commit
27fabf7ace
24 changed files with 145 additions and 128 deletions
|
|
@ -502,6 +502,8 @@ bool IsSingleTargetSpell(SpellEntry const *spellInfo)
|
|||
{
|
||||
case SPELL_JUDGEMENT:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// single target triggered spell.
|
||||
|
|
@ -531,6 +533,8 @@ bool IsSingleTargetSpells(SpellEntry const *spellInfo1, SpellEntry const *spellI
|
|||
if(GetSpellSpecific(spellInfo2->Id) == spec1)
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
@ -1136,12 +1140,13 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
|
|||
case SPELLFAMILY_GENERIC: // same family case
|
||||
{
|
||||
// Thunderfury
|
||||
if( spellInfo_1->Id == 21992 && spellInfo_2->Id == 27648 || spellInfo_2->Id == 21992 && spellInfo_1->Id == 27648 )
|
||||
if ((spellInfo_1->Id == 21992 && spellInfo_2->Id == 27648) ||
|
||||
(spellInfo_2->Id == 21992 && spellInfo_1->Id == 27648))
|
||||
return false;
|
||||
|
||||
// Lightning Speed (Mongoose) and Fury of the Crashing Waves (Tsunami Talisman)
|
||||
if( spellInfo_1->Id == 28093 && spellInfo_2->Id == 42084 ||
|
||||
spellInfo_2->Id == 28093 && spellInfo_1->Id == 42084 )
|
||||
if ((spellInfo_1->Id == 28093 && spellInfo_2->Id == 42084) ||
|
||||
(spellInfo_2->Id == 28093 && spellInfo_1->Id == 42084))
|
||||
return false;
|
||||
|
||||
// Soulstone Resurrection and Twisting Nether (resurrector)
|
||||
|
|
@ -2789,6 +2794,8 @@ bool IsDiminishingReturnsGroupDurationLimited(DiminishingGroup group)
|
|||
case DIMINISHING_BANISH:
|
||||
case DIMINISHING_LIMITONLY:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -2816,6 +2823,8 @@ DiminishingReturnsType GetDiminishingReturnsGroupType(DiminishingGroup group)
|
|||
case DIMINISHING_WARLOCK_FEAR:
|
||||
case DIMINISHING_KNOCKOUT:
|
||||
return DRTYPE_PLAYER;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return DRTYPE_NONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue