mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 09:39:11 +00:00
Fix Maexxna's portal rotation. (#925)
* Maexxna portal rotation. * Rewritten sql to update, ready to be merged. * Portal's visual effect should be in different phasemask and appear only when maexxna is killed. * split the update query in two, forgot that visual is in phase2 * i want to kms.. all should be good now
This commit is contained in:
@@ -262,12 +262,26 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa
|
||||
}
|
||||
|
||||
GameObjectAddon const* addon = sObjectMgr->GetGameObjectAddon(guidlow);
|
||||
// xinef: hackfix - but make it possible to use original WorldRotation (using special gameobject addon data)
|
||||
// pussywizard: temporarily calculate WorldRotation from orientation, do so until values in db are correct
|
||||
if (addon && addon->invisibilityType == INVISIBILITY_GENERAL && addon->InvisibilityValue == 0)
|
||||
SetWorldRotation(rotation);
|
||||
else
|
||||
SetWorldRotationAngles(NormalizeOrientation(GetOrientation()), 0.0f, 0.0f);
|
||||
|
||||
// hackfix for the hackfix down below
|
||||
switch (goinfo->entry)
|
||||
{
|
||||
// excluded ids from the hackfix below
|
||||
// used switch since there should be more
|
||||
case 181233: // maexxna portal effect
|
||||
case 181575: // maexxna portal
|
||||
SetWorldRotation(rotation);
|
||||
break;
|
||||
default:
|
||||
// xinef: hackfix - but make it possible to use original WorldRotation (using special gameobject addon data)
|
||||
// pussywizard: temporarily calculate WorldRotation from orientation, do so until values in db are correct
|
||||
if (addon && addon->invisibilityType == INVISIBILITY_GENERAL && addon->InvisibilityValue == 0)
|
||||
SetWorldRotation(rotation);
|
||||
else
|
||||
SetWorldRotationAngles(NormalizeOrientation(GetOrientation()), 0.0f, 0.0f);
|
||||
break;
|
||||
}
|
||||
|
||||
// pussywizard: no PathRotation for normal gameobjects
|
||||
SetTransportPathRotation(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user