*Backout some WTF fixes. Do things correctly, or do not touch them at all...
*Really fix windows build. --HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
DELETE FROM spell_linked_spell WHERE spell_trigger = 31687;
|
||||||
@@ -5825,7 +5825,6 @@ INSERT INTO `spell_linked_spell` (`spell_trigger`,`spell_effect`,`type`,`comment
|
|||||||
( 54850, 54851, 1, 'Emerge - Emerge Summon'),
|
( 54850, 54851, 1, 'Emerge - Emerge Summon'),
|
||||||
-- Trial of the Champion
|
-- Trial of the Champion
|
||||||
( 66680, 66547, 0, 'Confess - Confess'),
|
( 66680, 66547, 0, 'Confess - Confess'),
|
||||||
( 31687, 70907, 0, 'Summon Water Elemental'),
|
|
||||||
( 66889,-66865, 0, 'Remove Vengeance');
|
( 66889,-66865, 0, 'Remove Vengeance');
|
||||||
/*!40000 ALTER TABLE `spell_linked_spell` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `spell_linked_spell` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|||||||
@@ -771,10 +771,6 @@ bool Item::IsFitToSpellRequirements(SpellEntry const* spellInfo) const
|
|||||||
{
|
{
|
||||||
ItemPrototype const* proto = GetProto();
|
ItemPrototype const* proto = GetProto();
|
||||||
|
|
||||||
//Lava Lash
|
|
||||||
if (spellInfo->Id==60103 && spellInfo->EquippedItemClass==ITEM_CLASS_WEAPON)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (spellInfo->EquippedItemClass != -1) // -1 == any item class
|
if (spellInfo->EquippedItemClass != -1) // -1 == any item class
|
||||||
{
|
{
|
||||||
// Special case - accept vellum for armor/weapon requirements
|
// Special case - accept vellum for armor/weapon requirements
|
||||||
|
|||||||
@@ -286,8 +286,6 @@ UpdateMask Player::updateVisualBits;
|
|||||||
|
|
||||||
Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputationMgr(this)
|
Player::Player (WorldSession *session): Unit(), m_achievementMgr(this), m_reputationMgr(this)
|
||||||
{
|
{
|
||||||
m_isSaved = false;
|
|
||||||
|
|
||||||
m_speakTime = 0;
|
m_speakTime = 0;
|
||||||
m_speakCount = 0;
|
m_speakCount = 0;
|
||||||
|
|
||||||
@@ -17084,15 +17082,12 @@ bool Player::_LoadHomeBind(QueryResult_AutoPtr result)
|
|||||||
void Player::SaveToDB()
|
void Player::SaveToDB()
|
||||||
{
|
{
|
||||||
// delay auto save at any saves (manual, in code, or autosave)
|
// delay auto save at any saves (manual, in code, or autosave)
|
||||||
m_isSaved = true;
|
|
||||||
|
|
||||||
m_nextSave = sWorld.getConfig(CONFIG_INTERVAL_SAVE);
|
m_nextSave = sWorld.getConfig(CONFIG_INTERVAL_SAVE);
|
||||||
|
|
||||||
//lets allow only players in world to be saved
|
//lets allow only players in world to be saved
|
||||||
if (IsBeingTeleportedFar())
|
if (IsBeingTeleportedFar())
|
||||||
{
|
{
|
||||||
ScheduleDelayedOperation(DELAYED_SAVE_PLAYER);
|
ScheduleDelayedOperation(DELAYED_SAVE_PLAYER);
|
||||||
m_isSaved = false;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -17226,7 +17221,6 @@ void Player::SaveToDB()
|
|||||||
// save pet (hunter pet level and experience and all type pets health/mana).
|
// save pet (hunter pet level and experience and all type pets health/mana).
|
||||||
if (Pet* pet = GetPet())
|
if (Pet* pet = GetPet())
|
||||||
pet->SavePetToDB(PET_SAVE_AS_CURRENT);
|
pet->SavePetToDB(PET_SAVE_AS_CURRENT);
|
||||||
m_isSaved = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// fast save function for item/money cheating preventing - save only inventory and money state
|
// fast save function for item/money cheating preventing - save only inventory and money state
|
||||||
|
|||||||
@@ -2582,8 +2582,6 @@ Spell * m_spellModTakingSpell;
|
|||||||
|
|
||||||
uint32 m_ChampioningFaction;
|
uint32 m_ChampioningFaction;
|
||||||
|
|
||||||
bool m_isSaved;
|
|
||||||
|
|
||||||
uint32 m_timeSyncCount;
|
uint32 m_timeSyncCount;
|
||||||
uint32 m_timeSyncTimer;
|
uint32 m_timeSyncTimer;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1982,10 +1982,6 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
|
|||||||
{
|
{
|
||||||
if (cur == TARGET_SRC_CASTER)
|
if (cur == TARGET_SRC_CASTER)
|
||||||
{
|
{
|
||||||
// Earthen Power
|
|
||||||
if (m_spellInfo->Id == 3600)
|
|
||||||
AddUnitTarget(m_caster, i);
|
|
||||||
|
|
||||||
m_targets.setSrc(m_caster);
|
m_targets.setSrc(m_caster);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1518,6 +1518,17 @@ void Spell::EffectDummy(uint32 i)
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 31687: // Summon Water Elemental
|
||||||
|
{
|
||||||
|
if (!unitTarget)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Glyph of Eternal Water
|
||||||
|
if (unitTarget->HasAura(70937))
|
||||||
|
unitTarget->CastSpell(unitTarget, 70908, true);
|
||||||
|
else
|
||||||
|
unitTarget->CastSpell(unitTarget, 70907, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_WARRIOR:
|
case SPELLFAMILY_WARRIOR:
|
||||||
|
|||||||
@@ -3766,6 +3766,11 @@ void SpellMgr::LoadSpellCustomAttr()
|
|||||||
spellInfo->EffectImplicitTargetB[1] = TARGET_UNIT_AREA_ALLY_SRC;
|
spellInfo->EffectImplicitTargetB[1] = TARGET_UNIT_AREA_ALLY_SRC;
|
||||||
count++;
|
count++;
|
||||||
break;
|
break;
|
||||||
|
case 31687: // Summon Water Elemental
|
||||||
|
// 322-330 switch - effect changed to dummy, target entry not changed in client:(
|
||||||
|
spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_CASTER;
|
||||||
|
count++;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -523,7 +523,6 @@ void Unit::UpdateInterruptMask()
|
|||||||
{
|
{
|
||||||
m_interruptMask = 0;
|
m_interruptMask = 0;
|
||||||
for(AuraApplicationList::const_iterator i = m_interruptableAuras.begin(); i != m_interruptableAuras.end(); ++i)
|
for(AuraApplicationList::const_iterator i = m_interruptableAuras.begin(); i != m_interruptableAuras.end(); ++i)
|
||||||
if (*i && (*i)->GetBase() && (*i)->GetBase()->GetSpellProto())
|
|
||||||
m_interruptMask |= (*i)->GetBase()->GetSpellProto()->AuraInterruptFlags;
|
m_interruptMask |= (*i)->GetBase()->GetSpellProto()->AuraInterruptFlags;
|
||||||
|
|
||||||
if (Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
|
if (Spell* spell = m_currentSpells[CURRENT_CHANNELED_SPELL])
|
||||||
|
|||||||
@@ -3172,6 +3172,7 @@
|
|||||||
RelativePath="..\..\src\scripts\northrend\frozen_halls\halls_of_reflection\instance_halls_of_reflection.cpp"
|
RelativePath="..\..\src\scripts\northrend\frozen_halls\halls_of_reflection\instance_halls_of_reflection.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
</Filter>
|
||||||
<Filter
|
<Filter
|
||||||
Name="Pit of Saron"
|
Name="Pit of Saron"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user