… | |
… | |
1629 | if (QUERY_FLAG (spell, FLAG_BERSERK) && !QUERY_FLAG (head, FLAG_BERSERK)) |
1629 | if (QUERY_FLAG (spell, FLAG_BERSERK) && !QUERY_FLAG (head, FLAG_BERSERK)) |
1630 | { |
1630 | { |
1631 | SET_FLAG (head, FLAG_BERSERK); |
1631 | SET_FLAG (head, FLAG_BERSERK); |
1632 | done_one = 1; |
1632 | done_one = 1; |
1633 | } |
1633 | } |
|
|
1634 | |
1634 | /* charm */ |
1635 | /* charm */ |
1635 | if (QUERY_FLAG (spell, FLAG_NO_ATTACK) && !QUERY_FLAG (head, FLAG_FRIENDLY)) |
1636 | if (QUERY_FLAG (spell, FLAG_NO_ATTACK) && !QUERY_FLAG (head, FLAG_FRIENDLY)) |
1636 | { |
1637 | { |
1637 | SET_FLAG (head, FLAG_FRIENDLY); |
|
|
1638 | /* Prevent uncontolled outbreaks of self replicating monsters. |
1638 | /* Prevent uncontolled outbreaks of self replicating monsters. |
1639 | Typical use case is charm, go somwhere, use aggravation to make hostile. |
1639 | Typical use case is charm, go somwhere, use aggravation to make hostile. |
1640 | This could lead to fun stuff like mice outbreak in bigworld and server crawl. */ |
1640 | This could lead to fun stuff like mice outbreak in bigworld and server crawl. */ |
1641 | CLEAR_FLAG (head, FLAG_GENERATOR); |
1641 | CLEAR_FLAG (head, FLAG_GENERATOR); |
1642 | head->set_owner (op); |
1642 | head->set_owner (op); |