*Update script of heigan.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-06 09:36:51 -05:00
parent 50dc00cce0
commit 22667d3ee6
3 changed files with 56 additions and 22 deletions
+2 -1
View File
@@ -2297,7 +2297,8 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect* triggeredByAura
ReSetTimer();
//Containers for channeled spells have to be set
//TODO:Apply this to all casted spells if needed
if(m_IsTriggeredSpell && !IsChanneledSpell(m_spellInfo))
// Why check m_casttime? 29350: channelled triggers channelled
if(m_IsTriggeredSpell && (!IsChanneledSpell(m_spellInfo) || !m_casttime))
cast(true);
else
{
+3 -2
View File
@@ -13861,11 +13861,12 @@ void Unit::NearTeleportTo( float x, float y, float z, float orientation, bool ca
DestroyForNearbyPlayers();
GetMap()->CreatureRelocation((Creature*)this, x, y, z, orientation);
ObjectAccessor::UpdateObjectVisibility(this);
//WorldPacket data;
// Work strange for many spells: triggered active mover set for targeted player to creature
//BuildTeleportAckMsg(&data, x, y, z, orientation);
BuildHeartBeatMsg(&data);
SendMessageToSet(&data, false);
//BuildHeartBeatMsg(&data);
//SendMessageToSet(&data, false);
}
}