*Merge.
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
DELETE FROM spell_proc_event where entry IN (31124, 31126);
|
||||||
|
INSERT INTO spell_proc_event () VALUES
|
||||||
|
(31124, 0, 8, 553648142, 0, 0, 0, 0, 0),
|
||||||
|
(31126, 0, 8, 553648142, 0, 0, 0, 0, 0);
|
||||||
@@ -82,4 +82,5 @@ INSTALL(FILES
|
|||||||
1881_world.sql
|
1881_world.sql
|
||||||
1884_world.sql
|
1884_world.sql
|
||||||
1886_world.sql
|
1886_world.sql
|
||||||
|
1211_world.sql
|
||||||
DESTINATION share/trinity/sql/updates)
|
DESTINATION share/trinity/sql/updates)
|
||||||
@@ -290,6 +290,9 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data )
|
|||||||
if(!m_respawnradius && m_defaultMovementType==RANDOM_MOTION_TYPE)
|
if(!m_respawnradius && m_defaultMovementType==RANDOM_MOTION_TYPE)
|
||||||
m_defaultMovementType = IDLE_MOTION_TYPE;
|
m_defaultMovementType = IDLE_MOTION_TYPE;
|
||||||
|
|
||||||
|
for(int i=0; i < CREATURE_MAX_SPELLS; ++i)
|
||||||
|
m_spells[i] = GetCreatureInfo()->spells[i];
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -345,9 +348,6 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data )
|
|||||||
SetPvP(true);
|
SetPvP(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i=0; i < CREATURE_MAX_SPELLS; ++i)
|
|
||||||
m_spells[i] = GetCreatureInfo()->spells[i];
|
|
||||||
|
|
||||||
// HACK: trigger creature is always not selectable
|
// HACK: trigger creature is always not selectable
|
||||||
if(isTrigger())
|
if(isTrigger())
|
||||||
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ void PassiveAI::UpdateAI(const uint32)
|
|||||||
EnterEvadeMode();
|
EnterEvadeMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PossessedAI::AttackStart(Unit *target)
|
||||||
|
{
|
||||||
|
me->Attack(target, true);
|
||||||
|
}
|
||||||
|
|
||||||
void PossessedAI::UpdateAI(const uint32 diff)
|
void PossessedAI::UpdateAI(const uint32 diff)
|
||||||
{
|
{
|
||||||
if(me->getVictim())
|
if(me->getVictim())
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ class TRINITY_DLL_DECL PossessedAI : public PassiveAI
|
|||||||
public:
|
public:
|
||||||
PossessedAI(Creature *c) : PassiveAI(c) {}
|
PossessedAI(Creature *c) : PassiveAI(c) {}
|
||||||
|
|
||||||
|
void AttackStart(Unit *target);
|
||||||
void UpdateAI(const uint32);
|
void UpdateAI(const uint32);
|
||||||
void EnterEvadeMode() {}
|
void EnterEvadeMode() {}
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -20308,7 +20308,10 @@ void Player::EnterVehicle(Vehicle *vehicle)
|
|||||||
data << uint32(0x00000000);
|
data << uint32(0x00000000);
|
||||||
data << uint32(0x00000101);
|
data << uint32(0x00000101);
|
||||||
|
|
||||||
for(uint32 i = 0; i < 10; ++i)
|
for(uint32 i = 0; i < CREATURE_MAX_SPELLS; ++i)
|
||||||
|
data << uint16(vehicle->m_spells[i]) << uint8(0) << uint8(i+8);
|
||||||
|
|
||||||
|
for(uint32 i = CREATURE_MAX_SPELLS; i < 10; ++i)
|
||||||
data << uint16(0) << uint8(0) << uint8(i+8);
|
data << uint16(0) << uint8(0) << uint8(i+8);
|
||||||
|
|
||||||
data << uint8(0);
|
data << uint8(0);
|
||||||
|
|||||||
+1
-1
@@ -483,7 +483,7 @@ void Unit::RemoveAuraTypeByCaster(AuraType auraType, uint64 casterGUID)
|
|||||||
{
|
{
|
||||||
if (auraType >= TOTAL_AURAS) return;
|
if (auraType >= TOTAL_AURAS) return;
|
||||||
AuraList::iterator iter, next;
|
AuraList::iterator iter, next;
|
||||||
for(iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end(); ++iter)
|
for(iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end(); iter = next)
|
||||||
{
|
{
|
||||||
next = iter;
|
next = iter;
|
||||||
++next;
|
++next;
|
||||||
|
|||||||
Reference in New Issue
Block a user