本文整理汇总了C++中PlayerPointer::RemovePositiveAura方法的典型用法代码示例。如果您正苦于以下问题:C++ PlayerPointer::RemovePositiveAura方法的具体用法?C++ PlayerPointer::RemovePositiveAura怎么用?C++ PlayerPointer::RemovePositiveAura使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerPointer
的用法示例。
在下文中一共展示了PlayerPointer::RemovePositiveAura方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ZoneHook
void ZoneHook(PlayerPointer plr, uint32 Zone, uint32 OldZone)
{
static uint32 spellids[2] = { HELLFIRE_SUPERORITY_ALLIANCE, HELLFIRE_SUPERORITY_HORDE };
if(Zone == ZONE_HELLFIRE_PENINSULA)
{
if(g_superiorTeam == plr->GetTeam())
plr->CastSpell(plr, dbcSpell.LookupEntry(spellids[plr->GetTeam()]), true);
}
else if(OldZone == ZONE_HELLFIRE_PENINSULA)
{
if(g_superiorTeam == plr->GetTeam())
plr->RemovePositiveAura(spellids[plr->GetTeam()]);
}
}
示例2: TFZoneHook
void TFZoneHook(PlayerPointer plr, uint32 Zone, uint32 OldZone)
{
if(!plr)
return;
if(Zone == ZONE_TEROKKAR_FOREST)
{
if(TFg_superiorTeam == plr->GetTeam())
plr->CastSpell(plr, dbcSpell.LookupEntry(BLESSING_OF_AUCHINDOUND), true);
}
else if(OldZone == ZONE_TEROKKAR_FOREST)
{
if(TFg_superiorTeam == plr->GetTeam())
plr->RemovePositiveAura(BLESSING_OF_AUCHINDOUND);
}
}
示例3: SilithusZoneHook
void SilithusZoneHook(PlayerPointer plr, uint32 Zone, uint32 OldZone)
{
if(!plr)
return;
if(Zone == ZONE_SILITHUS)
{
if(winners == plr->GetTeam())
plr->CastSpell(plr, dbcSpell.LookupEntry(CENARION_FAVOR), true);
}
else if(OldZone == ZONE_SILITHUS)
{
if(winners == plr->GetTeam())
plr->RemovePositiveAura(CENARION_FAVOR);
}
}