check Achievements when managing Charactergroups
This commit is contained in:
parent
34f6d8e0c8
commit
94497b2eed
1 changed files with 4 additions and 1 deletions
|
|
@ -397,8 +397,11 @@
|
||||||
{
|
{
|
||||||
// Add Characters to group
|
// Add Characters to group
|
||||||
case 'addcharacters':
|
case 'addcharacters':
|
||||||
foreach($selectedCharacters as &$characterId) {
|
foreach($selectedCharacters as &$characterId)
|
||||||
|
{
|
||||||
$this->Charactergroups->addCharacterToCharactergroup($group['id'], $characterId);
|
$this->Charactergroups->addCharacterToCharactergroup($group['id'], $characterId);
|
||||||
|
// Check Achievements
|
||||||
|
$this->Achievement->checkAchievements($seminary['id'], $characterId, array('character', 'achievement'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
// Remove Characters from group
|
// Remove Characters from group
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue