*Add a dk quest sql back. It was removed by mistake in 5119, but was never added back.
--HG-- branch : trunk
This commit is contained in:
@@ -2098,7 +2098,8 @@ update spell_area set quest_end = 12756 where spell=53081;
|
|||||||
|
|
||||||
update creature_template set spell1=53117 where entry=29104;
|
update creature_template set spell1=53117 where entry=29104;
|
||||||
update creature_template set spell1=53348,killcredit1=29150 where entry IN (29102,29103);
|
update creature_template set spell1=53348,killcredit1=29150 where entry IN (29102,29103);
|
||||||
|
UPDATE creature_template SET spell1=52435,spell2=52576,spell5=52588,VehicleId=79,speed=0 WHERE entry = 28833;
|
||||||
|
UPDATE `creature_template` SET vehicleid=87 WHERE (`entry`='28817'); -- mine car
|
||||||
|
|
||||||
DELETE FROM `spell_script_target` WHERE `entry` in (53658, 53679, 53701, 53705, 53706, 53677, 53685);
|
DELETE FROM `spell_script_target` WHERE `entry` in (53658, 53679, 53701, 53705, 53706, 53677, 53685);
|
||||||
-- insert into spell_script_target values (53658, 1, 29173);
|
-- insert into spell_script_target values (53658, 1, 29173);
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
UPDATE creature_template SET spell1=52435,spell2=52576,spell5=52588,VehicleId=79,speed=0 WHERE entry = 28833;
|
||||||
|
UPDATE `creature_template` SET vehicleid=87 WHERE (`entry`='28817'); -- mine car
|
||||||
+11
-14
@@ -538,8 +538,8 @@ void Unit::RemoveAurasWithInterruptFlags(uint32 flag, uint32 except)
|
|||||||
{
|
{
|
||||||
uint32 removedAuras = m_removedAurasCount;
|
uint32 removedAuras = m_removedAurasCount;
|
||||||
RemoveAura(aur, AURA_REMOVE_BY_ENEMY_SPELL);
|
RemoveAura(aur, AURA_REMOVE_BY_ENEMY_SPELL);
|
||||||
if (removedAuras+1 < m_removedAurasCount)
|
if (m_removedAurasCount > removedAuras + 1)
|
||||||
iter=m_interruptableAuras.begin();
|
iter = m_interruptableAuras.begin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -589,11 +589,9 @@ void Unit::RemoveAurasWithMechanic(uint32 mechanic_mask, AuraRemoveMode removemo
|
|||||||
void Unit::UpdateInterruptMask()
|
void Unit::UpdateInterruptMask()
|
||||||
{
|
{
|
||||||
m_interruptMask = 0;
|
m_interruptMask = 0;
|
||||||
for(AuraList::iterator i = m_interruptableAuras.begin(); i != m_interruptableAuras.end(); ++i)
|
for(AuraList::const_iterator i = m_interruptableAuras.begin(); i != m_interruptableAuras.end(); ++i)
|
||||||
{
|
|
||||||
if(*i)
|
|
||||||
m_interruptMask |= (*i)->GetSpellProto()->AuraInterruptFlags;
|
m_interruptMask |= (*i)->GetSpellProto()->AuraInterruptFlags;
|
||||||
}
|
|
||||||
if(Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
|
if(Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
|
||||||
if(spell->getState() == SPELL_STATE_CASTING)
|
if(spell->getState() == SPELL_STATE_CASTING)
|
||||||
m_interruptMask |= spell->m_spellInfo->ChannelInterruptFlags;
|
m_interruptMask |= spell->m_spellInfo->ChannelInterruptFlags;
|
||||||
@@ -1567,7 +1565,7 @@ void Unit::DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss)
|
|||||||
AuraEffectList const& vDamageShields = pVictim->GetAurasByType(SPELL_AURA_DAMAGE_SHIELD);
|
AuraEffectList const& vDamageShields = pVictim->GetAurasByType(SPELL_AURA_DAMAGE_SHIELD);
|
||||||
for(AuraEffectList::const_iterator i = vDamageShields.begin(), next = vDamageShields.begin(); i != vDamageShields.end(); i = next)
|
for(AuraEffectList::const_iterator i = vDamageShields.begin(), next = vDamageShields.begin(); i != vDamageShields.end(); i = next)
|
||||||
{
|
{
|
||||||
next++;
|
++next;
|
||||||
if (alreadyDone.find(*i) == alreadyDone.end())
|
if (alreadyDone.find(*i) == alreadyDone.end())
|
||||||
{
|
{
|
||||||
alreadyDone.insert(*i);
|
alreadyDone.insert(*i);
|
||||||
@@ -3942,8 +3940,6 @@ void Unit::RemoveAurasDueToSpellByDispel(uint32 spellId, uint64 casterGUID, Unit
|
|||||||
// backfire damage and silence
|
// backfire damage and silence
|
||||||
dispeler->CastCustomSpell(dispeler, 31117, &damage, NULL, NULL, true, NULL, NULL,GetGUID());
|
dispeler->CastCustomSpell(dispeler, 31117, &damage, NULL, NULL, true, NULL, NULL,GetGUID());
|
||||||
}
|
}
|
||||||
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
RemoveAuraFromStack(iter, AURA_REMOVE_BY_ENEMY_SPELL);
|
||||||
return;
|
return;
|
||||||
@@ -4004,7 +4000,7 @@ void Unit::RemoveAurasDueToItemSpell(Item* castItem,uint32 spellId)
|
|||||||
|
|
||||||
void Unit::RemoveAurasByType(AuraType auraType, uint64 casterGUID, Aura * except, bool negative, bool positive)
|
void Unit::RemoveAurasByType(AuraType auraType, uint64 casterGUID, Aura * except, bool negative, bool positive)
|
||||||
{
|
{
|
||||||
for (AuraEffectList::iterator iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end();)
|
for (AuraEffectList::const_iterator iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end();)
|
||||||
{
|
{
|
||||||
Aura * aur = (*iter)->GetParentAura();
|
Aura * aur = (*iter)->GetParentAura();
|
||||||
++iter;
|
++iter;
|
||||||
@@ -4013,8 +4009,8 @@ void Unit::RemoveAurasByType(AuraType auraType, uint64 casterGUID, Aura * except
|
|||||||
{
|
{
|
||||||
uint32 removedAuras = m_removedAurasCount;
|
uint32 removedAuras = m_removedAurasCount;
|
||||||
RemoveAura(aur);
|
RemoveAura(aur);
|
||||||
if (removedAuras+1< m_removedAurasCount)
|
if (m_removedAurasCount > removedAuras + 1)
|
||||||
iter=m_modAuras[auraType].begin();
|
iter = m_modAuras[auraType].begin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4051,8 +4047,8 @@ void Unit::RemoveNotOwnSingleTargetAuras(uint32 newPhase)
|
|||||||
{
|
{
|
||||||
uint32 removedAuras = m_removedAurasCount;
|
uint32 removedAuras = m_removedAurasCount;
|
||||||
aura->GetTarget()->RemoveAura(aura);
|
aura->GetTarget()->RemoveAura(aura);
|
||||||
if (removedAuras+1<m_removedAurasCount)
|
if (m_removedAurasCount > removedAuras + 1)
|
||||||
iter=scAuras.begin();
|
iter = scAuras.begin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4123,6 +4119,7 @@ void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// only way correctly remove all auras from list
|
// only way correctly remove all auras from list
|
||||||
|
//if(removedAuras != m_removedAurasCount) new aura may be casted
|
||||||
i = m_Auras.begin();
|
i = m_Auras.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ bool Vehicle::AddPassenger(Unit *unit, int8 seatId)
|
|||||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
|
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(seat->second.seatInfo->m_flags && !(seat->second.seatInfo->m_flags & 0x4000))
|
if(seat->second.seatInfo->m_flags && !(seat->second.seatInfo->m_flags & 0x400))
|
||||||
unit->addUnitState(UNIT_STAT_ONVEHICLE);
|
unit->addUnitState(UNIT_STAT_ONVEHICLE);
|
||||||
|
|
||||||
//SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED);
|
//SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PLAYER_CONTROLLED);
|
||||||
|
|||||||
Reference in New Issue
Block a user