mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/scripts/Commands/cs_npc.cpp
This commit is contained in:
3
sql/updates/world/2013_08_05_00_world_sai.sql
Normal file
3
sql/updates/world/2013_08_05_00_world_sai.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Fix Redridge Mystic
|
||||
DELETE FROM `smart_scripts` WHERE `entryorguid`=430 AND `id`=12;
|
||||
UPDATE `smart_scripts` SET `link`=0 WHERE `entryorguid`=430 AND `id`=11;
|
||||
2
sql/updates/world/2013_08_05_01_world_misc.sql
Normal file
2
sql/updates/world/2013_08_05_01_world_misc.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
UPDATE `smart_scripts` SET `event_type`=2 WHERE `entryorguid`=7271 AND `source_type`=0 AND `id`=5 AND `link`=0;
|
||||
UPDATE `creature_template` SET `AIName`='SmartAI', `ScriptName`='', `InhabitType`=7, `faction_A`=35, `faction_H`=35, `unit_flags`=0, `type_flags`=8, `dynamicflags`=128, `flags_extra`=0, `speed_walk`=2 WHERE `entry`= 15491;
|
||||
@@ -1558,7 +1558,7 @@ void Item::ItemContainerSaveLootToDB()
|
||||
stmt_items->setBool(6, _li->is_counted);
|
||||
stmt_items->setBool(7, _li->is_underthreshold);
|
||||
stmt_items->setBool(8, _li->needs_quest);
|
||||
stmt_items->setUInt32(9, _li->randomPropertyId);
|
||||
stmt_items->setInt32(9, _li->randomPropertyId);
|
||||
stmt_items->setUInt32(10, _li->randomSuffix);
|
||||
trans->Append(stmt_items);
|
||||
}
|
||||
@@ -1619,7 +1619,7 @@ bool Item::ItemContainerLoadLootFromDB()
|
||||
loot_item.canSave = true;
|
||||
loot_item.is_underthreshold = fields[6].GetBool();
|
||||
loot_item.needs_quest = fields[7].GetBool();
|
||||
loot_item.randomPropertyId = fields[8].GetUInt32();
|
||||
loot_item.randomPropertyId = fields[8].GetInt32();
|
||||
loot_item.randomSuffix = fields[9].GetUInt32();
|
||||
|
||||
// Copy the extra loot conditions from the item in the loot template
|
||||
|
||||
@@ -123,7 +123,7 @@ struct UnitFlag
|
||||
|
||||
#define UNIT_FLAGS_MAX 33
|
||||
|
||||
UnitFlag const unitFlags[MECHANIC_MAX] =
|
||||
UnitFlag const unitFlags[UNIT_FLAGS_MAX] =
|
||||
{
|
||||
{ UNIT_FLAG_SERVER_CONTROLLED , "UNIT_FLAG_SERVER_CONTROLLED" },
|
||||
{ UNIT_FLAG_NON_ATTACKABLE , "UNIT_FLAG_NON_ATTACKABLE" },
|
||||
|
||||
@@ -535,13 +535,13 @@ class spell_oculus_touch_the_nightmare : public SpellScriptLoader
|
||||
SetHitDamage(int32(GetCaster()->CountPctFromMaxHealth(30)));
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() OVERRIDE
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_oculus_touch_the_nightmare_SpellScript::HandleDamageCalc, EFFECT_2, SPELL_EFFECT_SCHOOL_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
SpellScript* GetSpellScript() const OVERRIDE
|
||||
{
|
||||
return new spell_oculus_touch_the_nightmare_SpellScript();
|
||||
}
|
||||
@@ -564,14 +564,14 @@ class spell_oculus_dream_funnel: public SpellScriptLoader
|
||||
canBeRecalculated = false;
|
||||
}
|
||||
|
||||
void Register()
|
||||
void Register() OVERRIDE
|
||||
{
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_oculus_dream_funnel_AuraScript::HandleEffectCalcAmount, EFFECT_0, SPELL_AURA_PERIODIC_HEAL);
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_oculus_dream_funnel_AuraScript::HandleEffectCalcAmount, EFFECT_2, SPELL_AURA_PERIODIC_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const
|
||||
AuraScript* GetAuraScript() const OVERRIDE
|
||||
{
|
||||
return new spell_oculus_dream_funnel_AuraScript();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user