Core/Spells: rework part 5: GameObject casting
This commit is contained in:
1 parent
c901772640
commit
b6fac86b71
43 files changed
+2638
-2337
No files matched your search
@@ -174,7 +174,7 @@ void SpellMgr::SetSpellDifficultyId(uint32 spellId, uint32 id)
|
||||
mSpellDifficultySearcherMap[spellId] = id;
|
||||
}
|
||||
|
||||
uint32 SpellMgr::GetSpellIdForDifficulty(uint32 spellId, Unit const* caster) const
|
||||
uint32 SpellMgr::GetSpellIdForDifficulty(uint32 spellId, WorldObject const* caster) const
|
||||
{
|
||||
if (!GetSpellInfo(spellId))
|
||||
return spellId;
|
||||
@@ -216,7 +216,7 @@ uint32 SpellMgr::GetSpellIdForDifficulty(uint32 spellId, Unit const* caster) con
|
||||
return uint32(difficultyEntry->DifficultySpellID[mode]);
|
||||
}
|
||||
|
||||
SpellInfo const* SpellMgr::GetSpellForDifficultyFromSpell(SpellInfo const* spell, Unit const* caster) const
|
||||
SpellInfo const* SpellMgr::GetSpellForDifficultyFromSpell(SpellInfo const* spell, WorldObject const* caster) const
|
||||
{
|
||||
if (!spell)
|
||||
return nullptr;
|
||||
|
||||
Reference in new issue
Block a user