mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
Database/World: made the database structure similar to TrinityCore (#154)
* Database/World: date the database structure similar to TrinityCore * Updated ObjectMgr.cpp * Moved sql update to pending_db_world directory
This commit is contained in:
@@ -742,7 +742,7 @@ bool SpellMgr::IsSpellProcEventCanTriggeredBy(SpellInfo const* spellProto, Spell
|
||||
}
|
||||
|
||||
if (procFlags & PROC_FLAG_TAKEN_PERIODIC)
|
||||
{
|
||||
{
|
||||
if (procExtra & PROC_EX_INTERNAL_HOT)
|
||||
{
|
||||
/// No aura that only has PROC_FLAG_TAKEN_PERIODIC can proc from a HOT.
|
||||
@@ -1132,7 +1132,7 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
||||
|
||||
// team that controls the workshop in the specified area
|
||||
uint32 team = bf->GetData(newArea);
|
||||
|
||||
|
||||
if (team == TEAM_HORDE)
|
||||
return spellId == 56618;
|
||||
else if (team == TEAM_ALLIANCE)
|
||||
@@ -1454,8 +1454,9 @@ void SpellMgr::LoadSpellTargetPositions()
|
||||
|
||||
mSpellTargetPositions.clear(); // need for reload case
|
||||
|
||||
// 0 1 2 3 4 5 6
|
||||
QueryResult result = WorldDatabase.Query("SELECT id, effIndex, target_map, target_position_x, target_position_y, target_position_z, target_orientation FROM spell_target_position");
|
||||
// 0 1 2 3 4 5 6
|
||||
QueryResult result = WorldDatabase.Query("SELECT ID, EffectIndex, MapID, PositionX, PositionY, PositionZ, Orientation FROM spell_target_position");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
sLog->outString(">> Loaded 0 spell target coordinates. DB table `spell_target_position` is empty.");
|
||||
@@ -3236,7 +3237,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
case 63137: // Force Cast (HACK: Target shouldn't be changed; summon position should be untied from spell destination)
|
||||
spellInfo->EffectImplicitTargetA[EFFECT_0] = TARGET_DEST_DB;
|
||||
break;
|
||||
case 53096: // Quetz'lun's Judgment
|
||||
case 53096: // Quetz'lun's Judgment
|
||||
case 70743: // AoD Special
|
||||
case 70614: // AoD Special - Vegard
|
||||
spellInfo->MaxAffectedTargets = 1;
|
||||
@@ -3554,7 +3555,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
case 53407:
|
||||
case 53408:
|
||||
spellInfo->FacingCasterFlags |= SPELL_FACING_FLAG_INFRONT;
|
||||
break;*/
|
||||
break;*/
|
||||
// Seal of Light trigger
|
||||
case 20167:
|
||||
spellInfo->spellLevel = 0;
|
||||
@@ -3675,7 +3676,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
spellInfo->AttributesEx3 |= SPELL_ATTR3_IGNORE_HIT_RESULT;
|
||||
break;
|
||||
// Cobra Strikes
|
||||
case 53257:
|
||||
case 53257:
|
||||
spellInfo->procCharges = 2;
|
||||
spellInfo->StackAmount = 0;
|
||||
break;
|
||||
@@ -4496,7 +4497,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
//////////////////////////////////////////
|
||||
////////// Gundrak
|
||||
//////////////////////////////////////////
|
||||
// Moorabi - Transformation
|
||||
// Moorabi - Transformation
|
||||
case 55098:
|
||||
spellInfo->InterruptFlags |= SPELL_INTERRUPT_FLAG_INTERRUPT;
|
||||
break;
|
||||
@@ -4511,7 +4512,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
|
||||
//////////////////////////////////////////
|
||||
////////// AHN'KAHET: THE OLD KINGDOM
|
||||
//////////////////////////////////////////
|
||||
//////////////////////////////////////////
|
||||
// Vanish
|
||||
case 55964:
|
||||
spellInfo->Effect[1] = 0;
|
||||
@@ -4520,7 +4521,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
|
||||
//////////////////////////////////////////
|
||||
////////// DRAK'THARON KEEP
|
||||
//////////////////////////////////////////
|
||||
//////////////////////////////////////////
|
||||
// Trollgore - Summon Drakkari Invader
|
||||
case 49456:
|
||||
case 49457:
|
||||
@@ -4530,7 +4531,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
|
||||
//////////////////////////////////////////
|
||||
////////// UTGARDE PINNACLE
|
||||
//////////////////////////////////////////
|
||||
//////////////////////////////////////////
|
||||
// Paralyse
|
||||
case 48278:
|
||||
// Awaken subboss
|
||||
@@ -4545,7 +4546,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
|
||||
//////////////////////////////////////////
|
||||
////////// UTGARDE KEEP
|
||||
//////////////////////////////////////////
|
||||
//////////////////////////////////////////
|
||||
// Skarvald, Charge
|
||||
case 43651:
|
||||
spellInfo->rangeIndex = 13; // 0-50000yd
|
||||
@@ -4582,7 +4583,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
|
||||
//////////////////////////////////////////
|
||||
////////// AZJOL'NERUB
|
||||
//////////////////////////////////////////
|
||||
//////////////////////////////////////////
|
||||
|
||||
// Krik'thir - Mind Flay
|
||||
case 52586:
|
||||
@@ -4609,7 +4610,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
////////// OBSIDIAN SANCTUM
|
||||
//////////////////////////////////////////
|
||||
// Lava Strike damage
|
||||
case 57697:
|
||||
case 57697:
|
||||
spellInfo->EffectImplicitTargetA[0] = TARGET_DEST_DEST;
|
||||
break;
|
||||
// Lava Strike trigger
|
||||
@@ -4839,7 +4840,7 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
break;
|
||||
// Cosmic Smash (Algalon the Observer)
|
||||
case 62311:
|
||||
case 64596:
|
||||
case 64596:
|
||||
spellInfo->AttributesEx2 |= SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS;
|
||||
spellInfo->EffectRadiusIndex[0] = 12; // 100yd
|
||||
spellInfo->rangeIndex = 13; // 50000yd
|
||||
@@ -6308,4 +6309,4 @@ void SpellMgr::LoadDbcDataCorrections()
|
||||
|
||||
sLog->outString(">> Loading spell dbc data corrections in %u ms", GetMSTimeDiffToNow(oldMSTime));
|
||||
sLog->outString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user