mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-20 10:53:53 +00:00
Formatting
This commit is contained in:
parent
caceae1028
commit
8b37ef5e67
@ -1911,17 +1911,17 @@ bool QuestManager::summonallplayercorpses(uint32 char_id, const glm::vec4& posit
|
||||
}
|
||||
|
||||
int QuestManager::getplayercorpsecount(uint32 char_id) {
|
||||
if (char_id > 0)
|
||||
if (char_id > 0) {
|
||||
return database.CountCharacterCorpses(char_id);
|
||||
|
||||
}
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
int QuestManager::getplayercorpsecountbyzoneid(uint32 char_id, uint32 zone_id) {
|
||||
if (char_id > 0 && zone_id > 0)
|
||||
if (char_id > 0 && zone_id > 0) {
|
||||
return database.CountCharacterCorpsesByZoneID(char_id, zone_id);
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -1824,34 +1824,34 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
{
|
||||
if (IsClient()) {
|
||||
Client* client_target = this->CastToClient();
|
||||
if(client_target->IsGrouped()) {
|
||||
if (client_target->IsGrouped()) {
|
||||
Group* group = client_target->GetGroup();
|
||||
if(!group->IsGroupMember(caster)) {
|
||||
if (!group->IsGroupMember(caster)) {
|
||||
if (caster != this) {
|
||||
caster->MessageString(Chat::Red, SUMMON_ONLY_GROUP_CORPSE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if (caster) {
|
||||
if(caster->IsRaidGrouped()) {
|
||||
if (caster->IsRaidGrouped()) {
|
||||
Raid *raid = caster->GetRaid();
|
||||
uint32 group_id = raid->GetGroup(caster->GetName());
|
||||
if(group_id > 0 && group_id < MAX_RAID_GROUPS) {
|
||||
if(raid->GetGroup(client_target->GetName()) != group_id) {
|
||||
if (group_id > 0 && group_id < MAX_RAID_GROUPS) {
|
||||
if (raid->GetGroup(client_target->GetName()) != group_id) {
|
||||
caster->MessageString(Chat::Red, SUMMON_ONLY_GROUP_CORPSE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(caster != this) {
|
||||
if (caster != this) {
|
||||
caster->MessageString(Chat::Red, SUMMON_ONLY_GROUP_CORPSE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(client_target) {
|
||||
if(database.CountCharacterCorpses(client_target->CharacterID()) == 0) {
|
||||
if (client_target) {
|
||||
if (database.CountCharacterCorpses(client_target->CharacterID()) == 0) {
|
||||
if (caster == this) {
|
||||
Message(Chat::Yellow, "You have no corpses to summon.");
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user