Core/Phases: Preliminary work with correctly implementing the phase system in 4.3.4
Put here for peer review.
This commit is contained in:
1 parent
6bc62d730e
commit
48ec2df81f
40 files changed
+436
-863
No files matched your search
@@ -1277,14 +1277,9 @@ public:
|
||||
|
||||
Unit* target = handler->getSelectedUnit();
|
||||
if (target)
|
||||
{
|
||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||
target->ToPlayer()->GetPhaseMgr().SetCustomPhase(phasemask);
|
||||
else
|
||||
target->SetPhaseMask(phasemask, true);
|
||||
}
|
||||
target->SetPhaseMask(phasemask, true);
|
||||
else
|
||||
handler->GetSession()->GetPlayer()->GetPhaseMgr().SetCustomPhase(phasemask);
|
||||
handler->GetSession()->GetPlayer()->SetPhaseMask(phasemask, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user