mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
Various Cleanups (game Q-R)
This commit is contained in:
parent
98e1efd435
commit
865f7d7428
10 changed files with 246 additions and 246 deletions
|
|
@ -26,26 +26,26 @@
|
|||
#define REACTOR_VISIBLE_RANGE (26.46f)
|
||||
|
||||
int
|
||||
ReactorAI::Permissible(const Creature *creature)
|
||||
ReactorAI::Permissible(const Creature* creature)
|
||||
{
|
||||
if( creature->IsCivilian() || creature->IsNeutralToAll() )
|
||||
if (creature->IsCivilian() || creature->IsNeutralToAll())
|
||||
return PERMIT_BASE_REACTIVE;
|
||||
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
||||
void
|
||||
ReactorAI::MoveInLineOfSight(Unit *)
|
||||
ReactorAI::MoveInLineOfSight(Unit*)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
ReactorAI::AttackStart(Unit *p)
|
||||
ReactorAI::AttackStart(Unit* p)
|
||||
{
|
||||
if(!p)
|
||||
if (!p)
|
||||
return;
|
||||
|
||||
if(m_creature->Attack(p,true))
|
||||
if (m_creature->Attack(p,true))
|
||||
{
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_AI_AND_MOVEGENSS, "Tag unit GUID: %u (TypeId: %u) as a victim", p->GetGUIDLow(), p->GetTypeId());
|
||||
i_victimGuid = p->GetObjectGuid();
|
||||
|
|
@ -59,7 +59,7 @@ ReactorAI::AttackStart(Unit *p)
|
|||
}
|
||||
|
||||
bool
|
||||
ReactorAI::IsVisible(Unit *) const
|
||||
ReactorAI::IsVisible(Unit*) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue