mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 09:31:30 +00:00
Fix for command #traindisc not saving disciplines when not used on self
This commit is contained in:
parent
542d454fe0
commit
b44da7c13a
@ -7839,7 +7839,7 @@ void command_traindisc(Client *c, const Seperator *sep)
|
|||||||
break; //continue the 1st loop
|
break; //continue the 1st loop
|
||||||
} else if(t->GetPP().disciplines.values[r] == 0) {
|
} else if(t->GetPP().disciplines.values[r] == 0) {
|
||||||
t->GetPP().disciplines.values[r] = curspell;
|
t->GetPP().disciplines.values[r] = curspell;
|
||||||
database.SaveCharacterDisc(c->CharacterID(), r, curspell);
|
database.SaveCharacterDisc(t->CharacterID(), r, curspell);
|
||||||
t->SendDisciplineUpdate();
|
t->SendDisciplineUpdate();
|
||||||
t->Message(0, "You have learned a new discipline!");
|
t->Message(0, "You have learned a new discipline!");
|
||||||
count++; //success counter
|
count++; //success counter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user