--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-14 09:24:59 -06:00
7 changed files with 19 additions and 5 deletions
+4
View File
@@ -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);
+1
View File
@@ -82,4 +82,5 @@ INSTALL(FILES
1881_world.sql
1884_world.sql
1886_world.sql
1211_world.sql
DESTINATION share/trinity/sql/updates)
+3 -3
View File
@@ -290,6 +290,9 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data )
if(!m_respawnradius && m_defaultMovementType==RANDOM_MOTION_TYPE)
m_defaultMovementType = IDLE_MOTION_TYPE;
for(int i=0; i < CREATURE_MAX_SPELLS; ++i)
m_spells[i] = GetCreatureInfo()->spells[i];
return true;
}
@@ -345,9 +348,6 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data )
SetPvP(true);
}
for(int i=0; i < CREATURE_MAX_SPELLS; ++i)
m_spells[i] = GetCreatureInfo()->spells[i];
// HACK: trigger creature is always not selectable
if(isTrigger())
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
+5
View File
@@ -27,6 +27,11 @@ void PassiveAI::UpdateAI(const uint32)
EnterEvadeMode();
}
void PossessedAI::AttackStart(Unit *target)
{
me->Attack(target, true);
}
void PossessedAI::UpdateAI(const uint32 diff)
{
if(me->getVictim())
+1
View File
@@ -41,6 +41,7 @@ class TRINITY_DLL_DECL PossessedAI : public PassiveAI
public:
PossessedAI(Creature *c) : PassiveAI(c) {}
void AttackStart(Unit *target);
void UpdateAI(const uint32);
void EnterEvadeMode() {}
+4 -1
View File
@@ -20308,7 +20308,10 @@ void Player::EnterVehicle(Vehicle *vehicle)
data << uint32(0x00000000);
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 << uint8(0);
+1 -1
View File
@@ -483,7 +483,7 @@ void Unit::RemoveAuraTypeByCaster(AuraType auraType, uint64 casterGUID)
{
if (auraType >= TOTAL_AURAS) return;
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;