*Fix build in Linux.

*Fix a bug of bloodboil. By Anubisss.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-18 09:44:57 -06:00
parent 49290bf010
commit 0f1f748138
3 changed files with 8 additions and 2 deletions

View File

@@ -1620,3 +1620,9 @@ void WorldObject::GetNearPoint(WorldObject const* searcher, float &x, float &y,
UpdateGroundPositionZ(x,y,z);
}
template<class NOTIFIER>
void WorldObject::VisitNearbyObject(const float &radius, NOTIFIER &notifier) const
{
GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier);
}

View File

@@ -479,7 +479,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object
Creature* SummonTrigger(float x, float y, float z, float ang, uint32 dur, CreatureAI* (*GetAI)(Creature*) = NULL);
bool isActive() const { return m_isActive; }
void setActive(bool isActive);
template<class NOTIFIER> void VisitNearbyObject(const float &radius, NOTIFIER &notifier) const { GetMap()->VisitAll(GetPositionX(), GetPositionY(), radius, notifier); }
template<class NOTIFIER> void VisitNearbyObject(const float &radius, NOTIFIER &notifier) const;
protected:
explicit WorldObject();
std::string m_name;

View File

@@ -1916,7 +1916,7 @@ void SpellMgr::LoadSpellCustomAttr()
tempSpell->MaxAffectedTargets = 3;
break;
case 42005: // Bloodboil
tempSpell->MaxAffectedTargets = 6;
tempSpell->MaxAffectedTargets = 5;
break;
case 8122: case 8124: case 10888: case 10890: // Psychic Scream
tempSpell->Attributes |= SPELL_ATTR_BREAKABLE_BY_DAMAGE;