mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 22:19:25 +01:00
Merge remote-tracking branch 'origin/master' into 4.3.4
This commit is contained in:
@@ -0,0 +1 @@
|
||||
UPDATE `gameobject_template` SET `flags`=40 WHERE `entry`=186371; -- Zeppelin
|
||||
2
sql/updates/world/2012_09_03_02_world_quest_template.sql
Normal file
2
sql/updates/world/2012_09_03_02_world_quest_template.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- Stalk the Stalker (9719) quest requirements fix
|
||||
UPDATE `quest_template` SET `RequiredRaces` = 0 WHERE `Id` = 9719;
|
||||
@@ -62,6 +62,13 @@ Battlefield::Battlefield()
|
||||
|
||||
Battlefield::~Battlefield()
|
||||
{
|
||||
for (BfCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr)
|
||||
delete itr->second;
|
||||
|
||||
for (GraveyardVect::const_iterator itr = m_GraveyardList.begin(); itr != m_GraveyardList.end(); ++itr)
|
||||
delete *itr;
|
||||
|
||||
m_capturePoints.clear();
|
||||
}
|
||||
|
||||
// Called when a player enters the zone
|
||||
|
||||
@@ -37,6 +37,9 @@ BattlefieldWG::~BattlefieldWG()
|
||||
{
|
||||
for (Workshop::const_iterator itr = WorkshopsList.begin(); itr != WorkshopsList.end(); ++itr)
|
||||
delete *itr;
|
||||
|
||||
for (GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
|
||||
delete *itr;
|
||||
}
|
||||
|
||||
bool BattlefieldWG::SetupBattlefield()
|
||||
|
||||
@@ -1331,10 +1331,16 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
|
||||
if (caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (caster->ToPlayer()->HasSpellCooldown(aura->GetId()))
|
||||
break;
|
||||
// and add if needed
|
||||
caster->ToPlayer()->AddSpellCooldown(aura->GetId(), 0, uint32(time(NULL) + 12));
|
||||
{
|
||||
// This additional check is needed to add a minimal delay before cooldown in in effect
|
||||
// to allow all bubbles broken by a single damage source proc mana return
|
||||
if (caster->ToPlayer()->GetSpellCooldownDelay(aura->GetId()) <= 11)
|
||||
break;
|
||||
}
|
||||
else // and add if needed
|
||||
caster->ToPlayer()->AddSpellCooldown(aura->GetId(), 0, uint32(time(NULL) + 12));
|
||||
}
|
||||
|
||||
// effect on caster
|
||||
if (AuraEffect const* aurEff = aura->GetEffect(0))
|
||||
{
|
||||
|
||||
@@ -133,7 +133,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
}
|
||||
}
|
||||
|
||||
void OnCreatureDeath(Creature* unit)
|
||||
void OnUnitDeath(Unit* unit)
|
||||
{
|
||||
if (unit && unit->GetTypeId() == TYPEID_UNIT && unit->GetEntry() == 17398)
|
||||
PrisonerDied(unit->GetGUID());
|
||||
|
||||
Reference in New Issue
Block a user