Core/Battlegrounds: Isle of Conquest Rework
Port From (https://github.com/TrinityCore/TrinityCore/commit/409adfa7a5372dedd40d6f40650c901f6fd646a6)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user