mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Merge branch 'master' into 303
Conflicts: contrib/extractor/System.cpp contrib/extractor/ad.exe src/game/WorldSocket.cpp
This commit is contained in:
commit
78ec66babc
78 changed files with 510 additions and 752 deletions
|
|
@ -653,7 +653,7 @@ void Spell::FillTargetMap()
|
|||
|
||||
for (std::list<Unit*>::iterator itr = tmpUnitMap.begin() ; itr != tmpUnitMap.end();)
|
||||
{
|
||||
if(!CheckTarget(*itr, i, false ))
|
||||
if (!CheckTarget (*itr, i))
|
||||
{
|
||||
itr = tmpUnitMap.erase(itr);
|
||||
continue;
|
||||
|
|
@ -3199,7 +3199,7 @@ void Spell::TriggerSpell()
|
|||
{
|
||||
for(TriggerSpells::iterator si=m_TriggerSpells.begin(); si!=m_TriggerSpells.end(); ++si)
|
||||
{
|
||||
Spell* spell = new Spell(m_caster, (*si), true, m_originalCasterGUID, this->m_selfContainer);
|
||||
Spell* spell = new Spell(m_caster, (*si), true, m_originalCasterGUID, m_selfContainer);
|
||||
spell->prepare(&m_targets); // use original spell original targets
|
||||
}
|
||||
}
|
||||
|
|
@ -3399,8 +3399,6 @@ uint8 Spell::CanCast(bool strict)
|
|||
m_spellInfo->EffectImplicitTargetA[j] == TARGET_SCRIPT_COORDINATES ||
|
||||
m_spellInfo->EffectImplicitTargetB[j] == TARGET_SCRIPT_COORDINATES )
|
||||
{
|
||||
bool okDoo = false;
|
||||
|
||||
SpellScriptTarget::const_iterator lower = spellmgr.GetBeginSpellScriptTarget(m_spellInfo->Id);
|
||||
SpellScriptTarget::const_iterator upper = spellmgr.GetEndSpellScriptTarget(m_spellInfo->Id);
|
||||
if(lower==upper)
|
||||
|
|
@ -4888,7 +4886,7 @@ CurrentSpellTypes Spell::GetCurrentContainer()
|
|||
return(CURRENT_GENERIC_SPELL);
|
||||
}
|
||||
|
||||
bool Spell::CheckTarget( Unit* target, uint32 eff, bool hitPhase )
|
||||
bool Spell::CheckTarget( Unit* target, uint32 eff )
|
||||
{
|
||||
// Check targets for creature type mask and remove not appropriate (skip explicit self target case, maybe need other explicit targets)
|
||||
if(m_spellInfo->EffectImplicitTargetA[eff]!=TARGET_SELF )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue