mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*Fix a typo that makes buildings in wintergrasp can never be destroyed and titan relic cannot be clicked.
--HG-- branch : trunk
This commit is contained in:
@@ -1476,7 +1476,7 @@ void GameObject::TakenDamage(uint32 damage)
|
||||
|
||||
SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_DESTROYED);
|
||||
SetUInt32Value(GAMEOBJECT_DISPLAYID, m_goInfo->building.destroyedDisplayId);
|
||||
EventInform(m_goInfo->building.damagedEvent);
|
||||
EventInform(m_goInfo->building.destroyedEvent);
|
||||
}
|
||||
}
|
||||
else // from intact to damaged
|
||||
@@ -1490,7 +1490,7 @@ void GameObject::TakenDamage(uint32 damage)
|
||||
|
||||
SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_DAMAGED);
|
||||
SetUInt32Value(GAMEOBJECT_DISPLAYID, m_goInfo->building.damagedDisplayId);
|
||||
EventInform(m_goInfo->building.destroyedEvent);
|
||||
EventInform(m_goInfo->building.damagedEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user