mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 02:10:28 +00:00
mage and paladin strategy port
This commit is contained in:
@@ -77,7 +77,16 @@ bool CastSealSpellAction::isUseful()
|
||||
return AI_VALUE2(bool, "combat", "self target");
|
||||
}
|
||||
|
||||
Value<Unit*>* CastTurnUndeadAction:: GetTargetValue()
|
||||
Value<Unit*>* CastTurnUndeadAction::GetTargetValue()
|
||||
{
|
||||
return context->GetValue<Unit*>("cc target", getName());
|
||||
}
|
||||
|
||||
Unit* CastRighteousDefenseAction::GetTarget()
|
||||
{
|
||||
Unit* current_target = AI_VALUE(Unit*, "current target");
|
||||
if (!current_target) {
|
||||
return NULL;
|
||||
}
|
||||
return current_target->GetVictim();
|
||||
}
|
||||
Reference in New Issue
Block a user