Changeset 138
- Timestamp:
- 11/19/08 13:39:38 (17 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Object.cpp
r123 r138 1483 1483 ((Creature*)this)->AI()->JustSummoned(pCreature); 1484 1484 1485 if(pCreature->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER && pCreature->m_spells[0]) 1486 pCreature->CastSpell(pCreature, pCreature->m_spells[0], true, 0, 0, GetGUID()); 1487 1485 1488 //return the creature therewith the summoner has access to it 1486 1489 return pCreature; -
trunk/src/game/Spell.cpp
r131 r138 927 927 { 928 928 if(spell_triggered > 0) 929 m_caster->CastSpell(unit, spell_triggered, true);929 unit->CastSpell(unit, spell_triggered, true/*, 0, 0, m_caster->GetGUID()*/); 930 930 else 931 931 unit->RemoveAurasDueToSpell(-spell_triggered); -
trunk/src/game/Unit.cpp
r136 r138 8572 8572 { 8573 8573 // Units far than max visible distance for creature or not in our map are not visible too 8574 if (!IsWithinDistInMap(u,World::GetMaxVisibleDistanceForCreature()+(inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f))) 8574 // Active unit should always be visibile 8575 if (!IsWithinDistInMap(u, u->isActive() 8576 ? (MAX_VISIBILITY_DISTANCE - (inVisibleList ? 0.0f : World::GetVisibleUnitGreyDistance())) 8577 : (World::GetMaxVisibleDistanceForCreature() + (inVisibleList ? World::GetVisibleUnitGreyDistance() : 0.0f)))) 8575 8578 return false; 8576 8579 } -
trunk/src/game/World.cpp
r122 r138 1097 1097 spellmgr.LoadSpellExtraAttr(); 1098 1098 1099 sLog.outString( "Loading linked spells..." ); 1100 spellmgr.LoadSpellLinked(); 1101 1099 1102 sLog.outString( "Loading player Create Info & Level Stats..." ); 1100 1103 objmgr.LoadPlayerInfo();