Ejemplo n.º 1
0
void GameObject::getFishLoot(Loot *fishloot)
{
    fishloot->clear();

    uint32 subzone = GetAreaId();

    // if subzone loot exist use it
    if(LootTemplates_Fishing.find(subzone) != LootTemplates_Fishing.end())
        FillLoot(fishloot, subzone, LootTemplates_Fishing, NULL);
    // else use zone loot
    else
        FillLoot(fishloot, GetZoneId(), LootTemplates_Fishing, NULL);
}
Ejemplo n.º 2
0
void GameObject::getFishLoot(Loot *fishloot)
{
    uint32 zone = GetZoneId();
    FillLoot(fishloot, zone, LootTemplates_Fishing);
}