Core/Battlegrounds: Isle of Conquest Rework

Port From (https://github.com/TrinityCore/TrinityCore/commit/409adfa7a5372dedd40d6f40650c901f6fd646a6)
This commit is contained in:
hondacrx
2024-03-07 16:44:24 -05:00
parent 69d144c399
commit 6b25d4b9b6
3 changed files with 1018 additions and 52 deletions
@@ -7,8 +7,9 @@ using Game.BattleGrounds.Zones;
using Game.BattleGrounds.Zones.AlteracValley;
using Game.BattleGrounds.Zones.ArathisBasin;
using Game.BattleGrounds.Zones.EyeofStorm;
using Game.BattleGrounds.Zones.WarsongGluch;
using Game.BattleGrounds.Zones.IsleOfConquest;
using Game.BattleGrounds.Zones.StrandOfAncients;
using Game.BattleGrounds.Zones.WarsongGluch;
using Game.DataStorage;
using Game.Entities;
using Game.Networking.Packets;
File diff suppressed because it is too large Load Diff
+1 -14
View File
@@ -1217,20 +1217,7 @@ namespace Game.Spells
if (goInfo.GetNoDamageImmune() != 0 && player.HasUnitFlag(UnitFlags.Immune))
return;
// Arathi Basin banner opening. // @todo Verify correctness of this check
if ((goInfo.type == GameObjectTypes.Button && goInfo.Button.noDamageImmune != 0) ||
(goInfo.type == GameObjectTypes.Goober && goInfo.Goober.requireLOS != 0))
{
//CanUseBattlegroundObject() already called in CheckCast()
// in Battlegroundcheck
Battleground bg = player.GetBattleground();
if (bg != null)
{
bg.EventPlayerClickedOnFlag(player, gameObjTarget);
return;
}
}
else if (goInfo.type == GameObjectTypes.FlagStand)
if (goInfo.type == GameObjectTypes.FlagStand)
{
//CanUseBattlegroundObject() already called in CheckCast()
// in Battlegroundcheck