mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-03 00:52:25 +00:00
Make sure we actually have the AA they're trying to cast
This commit is contained in:
parent
3c1b499485
commit
7909270527
15
zone/aa.cpp
15
zone/aa.cpp
@ -1146,15 +1146,14 @@ void Client::ActivateAlternateAdvancementAbility(int rank_id, int target_id) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if expendable make sure we have charges
|
uint32 charges = 0;
|
||||||
if(ability->charges > 0) {
|
// We don't have the AA
|
||||||
uint32 charges = 0;
|
if (!GetAA(rank_id, &charges))
|
||||||
GetAA(rank_id, &charges);
|
return;
|
||||||
|
|
||||||
if(charges < 0) {
|
//if expendable make sure we have charges
|
||||||
return;
|
if(ability->charges > 0 && charges < 1)
|
||||||
}
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
//check cooldown
|
//check cooldown
|
||||||
if(!p_timers.Expired(&database, rank->spell_type + pTimerAAStart)) {
|
if(!p_timers.Expired(&database, rank->spell_type + pTimerAAStart)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user